From: Ondřej Surý Date: Tue, 26 Nov 2019 17:03:33 +0000 (+0100) Subject: Don't clean the system test temporary files if sanitizer reports were found inside X-Git-Tag: v9.14.10~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bc834daae449d6fb7fc5e2bb51d568749b5e7e7;p=thirdparty%2Fbind9.git Don't clean the system test temporary files if sanitizer reports were found inside (cherry picked from commit 7489e6e6f9526793fe4da36b77f685911f2cf517) --- diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 7758b2e4164..758ee3dce86 100755 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -196,6 +196,7 @@ if [ $status != 0 ]; then else core_dumps="$(find $systest/ -name 'core*' -or -name '*.core' | sort | tr '\n' ' ')" assertion_failures=$(find $systest/ -name named.run | xargs grep "assertion failure" | wc -l) + sanitizer_summaries=$(grep -r "SUMMARY: .*Sanitizer" $systest/ | wc -l) if [ -n "$core_dumps" ]; then echoinfo "I:$systest:Test claims success despite crashes: $core_dumps" echofail "R:$systest:FAIL" @@ -216,6 +217,9 @@ else echoinfo "I:$systest:Test claims success despite $assertion_failures assertion failure(s)" echofail "R:$systest:FAIL" # Do not clean up - we need the evidence. + elif [ $sanitizer_summaries -ne 0 ]; then + echoinfo "I:$systest:Test claims success despite $sanitizer_summaries sanitizer reports(s)" + echofail "R:$systest:FAIL" else echopass "R:$systest:PASS" if $clean