From: Mark Andrews Date: Tue, 24 Oct 2017 01:45:13 +0000 (+1100) Subject: report if named.run or named.memstats not removed after successful test X-Git-Tag: v9.12.0b2~85 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5bead588b77205d360f68074c1a3c90de9fd0387;p=thirdparty%2Fbind9.git report if named.run or named.memstats not removed after successful test --- diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index c3656786464..5ec78e322cc 100644 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -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`"