]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't clean the system test temporary files if sanitizer reports were found inside
authorOndřej Surý <ondrej@isc.org>
Tue, 26 Nov 2019 17:03:33 +0000 (18:03 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jan 2020 09:47:54 +0000 (10:47 +0100)
(cherry picked from commit 7489e6e6f9526793fe4da36b77f685911f2cf517)

bin/tests/system/run.sh

index 7758b2e416492f4be80b94ec2b6df9279f2fa127..758ee3dce86c63c0e1fc028e68834d755b8077cf 100755 (executable)
@@ -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