]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
replace grep -r with 'find -type f | xargs'
authorMark Andrews <marka@isc.org>
Thu, 28 Nov 2019 23:58:28 +0000 (10:58 +1100)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jan 2020 09:51:37 +0000 (10:51 +0100)
(cherry picked from commit 36ce99d8a429775d9f219f82497800626a2f8a7c)

bin/tests/system/run.sh

index 758ee3dce86c63c0e1fc028e68834d755b8077cf..f846e32de9673e59f717a8dbb0ebfe53758f3430 100755 (executable)
@@ -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"