diff --git a/test/match-error.sh b/test/match-error.sh index fc0b5ca..d64e318 100755 --- a/test/match-error.sh +++ b/test/match-error.sh @@ -11,7 +11,7 @@ regex="$1" shift -"${@}" 2>&1 | stdbuf -i0 -o0 tee /dev/stderr | grep -q "${regex}" +"${@}" 2>&1 | stdbuf -i0 -o0 tee /dev/stderr | grep "${regex}" >/dev/null rcprog=${PIPESTATUS[0]} rcgrep=${PIPESTATUS[2]} diff --git a/test/match-ok.sh b/test/match-ok.sh index 1af0c0a..9570d3c 100755 --- a/test/match-ok.sh +++ b/test/match-ok.sh @@ -11,7 +11,7 @@ regex="$1" shift -"${@}" 2>&1 | stdbuf -i0 -o0 tee /dev/stderr | grep -q "${regex}" +"${@}" 2>&1 | stdbuf -i0 -o0 tee /dev/stderr | grep "${regex}" >/dev/null rcprog=${PIPESTATUS[0]} rcgrep=${PIPESTATUS[2]}