From: Mark Andrews Date: Thu, 28 Nov 2019 23:58:28 +0000 (+1100) Subject: replace grep -r with 'find -type f | xargs' X-Git-Tag: v9.14.10~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3636b0d275c1cba2c7ad051b0b42f62a4875a2b0;p=thirdparty%2Fbind9.git replace grep -r with 'find -type f | xargs' (cherry picked from commit 36ce99d8a429775d9f219f82497800626a2f8a7c) --- diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 758ee3dce86..f846e32de96 100755 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -196,7 +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) + sanitizer_summaries=$(find $systest/ -type f | grep '^[-a-zA-Z0-9./_]*$' | xargs grep "SUMMARY: .*Sanitizer" | wc -l) if [ -n "$core_dumps" ]; then echoinfo "I:$systest:Test claims success despite crashes: $core_dumps" echofail "R:$systest:FAIL"