chiark / gitweb /
Test suite: unset empty redacted paths
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Oct 2016 19:37:24 +0000 (20:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Oct 2016 19:37:24 +0000 (20:37 +0100)
Some programs might treat that as a path of implicitly ".".

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tstunt/dpkg-parsechangelog

index 4d7cdf8..436591f 100755 (executable)
@@ -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;