]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
run.sh failed to exit with a error code when it should
authorMark Andrews <marka@isc.org>
Tue, 6 Oct 2020 00:53:22 +0000 (11:53 +1100)
committerMark Andrews <marka@isc.org>
Tue, 6 Oct 2020 06:03:59 +0000 (06:03 +0000)
* if a core was detected 'status' was not updated.
* if a tsan or asan error was detected 'status' was not updated.

bin/tests/system/run.sh

index 8dab717fcc173b2dd3a1c66ce624b271e89219d6..0a26d2009da3d01e2bd3fbc4eba9f185505b8881 100755 (executable)
@@ -291,14 +291,17 @@ if [ -n "$core_dumps" ]; then
         echoinfo "D:$systest:core dump $coredump archived as $coredump.gz"
         gzip -1 "${coredump}"
     done
+    status=$((status+1))
 elif [ "$assertion_failures" -ne 0 ]; then
     SYSTESTDIR="$systest"
     echoinfo "I:$systest:$assertion_failures assertion failure(s) found"
     find "$systest/" -name 'tsan.*' -print0 | xargs -0 grep "SUMMARY: " | sort -u | cat_d
     echofail "R:$systest:FAIL"
+    status=$((status+1))
 elif [ "$sanitizer_summaries" -ne 0 ]; then
     echoinfo "I:$systest:$sanitizer_summaries sanitizer report(s) found"
     echofail "R:$systest:FAIL"
+    status=$((status+1))
 elif [ "$status" -ne 0 ]; then
     echofail "R:$systest:FAIL"
 else