From de88d83a78b4fe205653b7f72637bbe3d7fd32fa Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 3 Aug 2021 11:03:05 +1000 Subject: [PATCH] replace '-print0 | xargs -0' with '-exec ... {} +' --- bin/tests/system/run.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/run.sh.in b/bin/tests/system/run.sh.in index 839bb34bf1..b4d14cd8cf 100644 --- a/bin/tests/system/run.sh.in +++ b/bin/tests/system/run.sh.in @@ -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"