mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 17:18:53 -04:00
Don't clean the system test temporary files if sanitizer reports were found inside
(cherry picked from commit 7489e6e6f9)
This commit is contained in:
parent
13033c4527
commit
3bc834daae
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue