]> 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)
committerMark Andrews <marka@isc.org>
Thu, 28 Nov 2019 23:58:28 +0000 (10:58 +1100)
bin/tests/system/run.sh

index a627c39ca2a7e6e1519597ecded9889fbe1f5174..502a2a5caf16dfeb83d004b8a71a4b0032b0de18 100755 (executable)
@@ -191,7 +191,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"