Skip to content

Commit 076016b

Browse files
Support piping into not_grep
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent 499674d commit 076016b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/all-core.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,10 +789,7 @@ pre_setup_keep_going () {
789789
not_grep () {
790790
#set -x
791791
declare ret=0
792-
# Add /dev/null as a file name. This forces the file name to be displayed
793-
# if there is a single file name, and prevents blocking waiting on stdin
794-
# if this function is accidentally called with zero file names.
795-
grep "$@" /dev/null || ret=$?
792+
grep -H "$@" || ret=$?
796793
if [[ $ret -eq 0 ]]; then
797794
# A match was found, and displayed on stdout.
798795
# This is a test failure.

0 commit comments

Comments
 (0)