]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report if named.run or named.memstats not removed after successful test
authorMark Andrews <marka@isc.org>
Tue, 24 Oct 2017 01:45:13 +0000 (12:45 +1100)
committerMark Andrews <marka@isc.org>
Tue, 24 Oct 2017 01:45:13 +0000 (12:45 +1100)
bin/tests/system/run.sh

index c36567864640bf58db9dbca701056c9c162689f2..5ec78e322cc001bdaeb4b17aa595e397dc1554ec 100644 (file)
@@ -100,26 +100,27 @@ $PERL stop.pl $test
 status=`expr $status + $?`
 
 if [ $status != 0 ]; then
-       echofail "R:FAIL"
-       # Don't clean up - we need the evidence.
-       find . -name core -exec chmod 0644 '{}' \;
+    echofail "R:FAIL"
+    # Don't clean up - we need the evidence.
+    find . -name core -exec chmod 0644 '{}' \;
 else
-       echopass "R:PASS"
+    echopass "R:PASS"
 
-       if $clean
+    if $clean
+    then
+       rm -f $SYSTEMTESTTOP/random.data
+       if test -f $test/clean.sh
        then
-               rm -f $SYSTEMTESTTOP/random.data
-               if test -f $test/clean.sh
-               then
-                       ( cd $test && $SHELL clean.sh "$@" )
-               fi
-               if test -d ../../../.git
-               then
-                       git status -su $test |
-                       sed -n 's/^?? \(.*\)/I:file \1 not removed/p'
-               fi
-
+           ( cd $test && $SHELL clean.sh "$@" )
+       fi
+       if test -d ../../../.git
+       then
+           git status -su --ignored $test |
+           sed -n -e 's|^?? \(.*\)|I:file \1 not removed|p' \
+               -e 's|^!! \(.*/named.run\)$|I:file \1 not removed|p' \
+               -e 's|^!! \(.*/named.memstats\)$|I:file \1 not removed|p'
        fi
+    fi
 fi
 
 echoinfo "E:$test:`date`"