summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-15 20:37:24 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-15 20:37:24 +0100
commitd7615b2df06548d7454ab3ad1a309b475900ab4b (patch)
treee3057125ec23e64bf3b5e498cf4c958ff84de1d8
parent523f42f6ba9805aae8245af4f996581d6c7c51a3 (diff)
Test suite: unset empty redacted paths
Some programs might treat that as a path of implicitly ".". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xtests/tstunt/dpkg-parsechangelog1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tstunt/dpkg-parsechangelog b/tests/tstunt/dpkg-parsechangelog
index 4d7cdf8..436591f 100755
--- a/tests/tstunt/dpkg-parsechangelog
+++ b/tests/tstunt/dpkg-parsechangelog
@@ -32,6 +32,7 @@ if (@ARGV) {
my @npath = grep { $_ ne $strip } @opath;
@npath != @opath or die "$0 $k ".($ENV{$k}//"(undef)")." ?";
$ENV{$k} = join ':', @npath;
+ delete $ENV{$k} if !@npath;
}
die if $ENV{'DGIT_NO_TSTUNT_CLPARSE'}++;
exec 'dpkg-parsechangelog', @orgargv;