]> 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:52:14 +0000 (10:52 +0100)
(cherry picked from commit 36ce99d8a429775d9f219f82497800626a2f8a7c)

bin/tests/system/run.sh

index 4889c984604d02866f76e6ba0b6f32c7a7274d02..a0d8b6d08b3ddfe59a549b6dd0db447fe9b59aaa 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"