mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Merge branch 'mnowak/get_core_dumps-fix-misplaced-tsan-line' into 'main'
TSAN summarising line was misplaced in get_core_dumps.sh See merge request isc-projects/bind9!7870
This commit is contained in:
@@ -24,8 +24,6 @@ get_core_dumps() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
core_dumps=$(get_core_dumps | tr '\n' ' ')
|
core_dumps=$(get_core_dumps | tr '\n' ' ')
|
||||||
assertion_failures=$(find "$SYSTESTDIR/" -name named.run -exec grep "assertion failure" {} + | wc -l)
|
|
||||||
sanitizer_summaries=$(find "$SYSTESTDIR/" -name 'tsan.*' | wc -l)
|
|
||||||
if [ -n "$core_dumps" ]; then
|
if [ -n "$core_dumps" ]; then
|
||||||
status=1
|
status=1
|
||||||
echoinfo "I:$systest:Core dump(s) found: $core_dumps"
|
echoinfo "I:$systest:Core dump(s) found: $core_dumps"
|
||||||
@@ -54,13 +52,19 @@ if [ -n "$core_dumps" ]; then
|
|||||||
echoinfo "D:$systest:core dump $coredump archived as $coredump.gz"
|
echoinfo "D:$systest:core dump $coredump archived as $coredump.gz"
|
||||||
gzip -1 "${coredump}"
|
gzip -1 "${coredump}"
|
||||||
done
|
done
|
||||||
elif [ "$assertion_failures" -ne 0 ]; then
|
fi
|
||||||
|
|
||||||
|
assertion_failures=$(find "$SYSTESTDIR/" -name named.run -exec grep "assertion failure" {} + | wc -l)
|
||||||
|
if [ "$assertion_failures" -ne 0 ]; then
|
||||||
status=1
|
status=1
|
||||||
echoinfo "I:$systest:$assertion_failures assertion failure(s) found"
|
echoinfo "I:$systest:$assertion_failures assertion failure(s) found"
|
||||||
find "$SYSTESTDIR/" -name 'tsan.*' -exec grep "SUMMARY: " {} + | sort -u | cat_d
|
fi
|
||||||
elif [ "$sanitizer_summaries" -ne 0 ]; then
|
|
||||||
|
tsan_failures=$(find "$SYSTESTDIR/" -name 'tsan.*' | wc -l)
|
||||||
|
if [ "$tsan_failures" -ne 0 ]; then
|
||||||
status=1
|
status=1
|
||||||
echoinfo "I:$systest:$sanitizer_summaries sanitizer report(s) found"
|
echoinfo "I:$systest:$tsan_failures TSAN sanitizer report(s) found"
|
||||||
|
find "$SYSTESTDIR/" -name 'tsan.*' -exec grep "SUMMARY: " {} + | sort -u | cat_d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit $status
|
exit $status
|
||||||
|
Reference in New Issue
Block a user