mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-19 17:17:04 -04:00
replace '-print0 | xargs -0' with '-exec ... {} +'
This commit is contained in:
parent
ce8527252c
commit
de88d83a78
1 changed files with 2 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ get_core_dumps() {
|
|||
}
|
||||
|
||||
core_dumps=$(get_core_dumps | tr '\n' ' ')
|
||||
assertion_failures=$(find "$systest/" -name named.run -print0 | xargs -0 grep "assertion failure" | wc -l)
|
||||
assertion_failures=$(find "$systest/" -name named.run -exec grep "assertion failure" {} + | wc -l)
|
||||
sanitizer_summaries=$(find "$systest/" -name 'tsan.*' | wc -l)
|
||||
if [ -n "$core_dumps" ]; then
|
||||
status=1
|
||||
|
|
@ -287,7 +287,7 @@ elif [ "$assertion_failures" -ne 0 ]; then
|
|||
status=1
|
||||
SYSTESTDIR="$systest"
|
||||
echoinfo "I:$systest:$assertion_failures assertion failure(s) found"
|
||||
find "$systest/" -name 'tsan.*' -print0 | xargs -0 grep "SUMMARY: " | sort -u | cat_d
|
||||
find "$systest/" -name 'tsan.*' -exec grep "SUMMARY: " {} + | sort -u | cat_d
|
||||
elif [ "$sanitizer_summaries" -ne 0 ]; then
|
||||
status=1
|
||||
echoinfo "I:$systest:$sanitizer_summaries sanitizer report(s) found"
|
||||
|
|
|
|||
Loading…
Reference in a new issue