]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
replace '-print0 | xargs -0' with '-exec ... {} +'
authorMark Andrews <marka@isc.org>
Tue, 3 Aug 2021 01:03:05 +0000 (11:03 +1000)
committerMark Andrews <marka@isc.org>
Thu, 12 Aug 2021 00:41:27 +0000 (10:41 +1000)
bin/tests/system/run.sh.in

index 839bb34bf14673000bc89900d9db1135c4becb14..b4d14cd8cf323c26a895255978edfad52215cdb7 100644 (file)
@@ -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"