From: Ian Jackson Date: Sat, 15 Oct 2016 19:37:24 +0000 (+0100) Subject: Test suite: unset empty redacted paths X-Git-Tag: archive/debian/2.0~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=d7615b2df06548d7454ab3ad1a309b475900ab4b;hp=523f42f6ba9805aae8245af4f996581d6c7c51a3 Test suite: unset empty redacted paths Some programs might treat that as a path of implicitly ".". Signed-off-by: Ian Jackson --- diff --git a/tests/tstunt/dpkg-parsechangelog b/tests/tstunt/dpkg-parsechangelog index 4d7cdf84..436591f6 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;