From 86ee5bb750343cccbf713a90bc1357a079c3d3cc Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 24 Sep 2016 15:53:35 +0200 Subject: [PATCH] tests/run.sh: Don't fail because of grep This script runs under "set -e", so any command exiting with a non-zero status makes it abort. However, we do not care about failures from grep to find anything, so handle that case gracefully. Signed-off-by: Uli Schlachter --- tests/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run.sh b/tests/run.sh index 1b162560d..697723404 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -222,7 +222,7 @@ for f in $tests; do if ! grep -q -E '^Test finished successfully$' $awesome_log || grep -q -E '[Ee]rror|assertion failed' $awesome_log; then echo "===> ERROR running $f! <===" - grep --color -o --binary-files=text -E '.*[Ee]rror.*|.*assertion failed.*' $awesome_log + grep --color -o --binary-files=text -E '.*[Ee]rror.*|.*assertion failed.*' $awesome_log || true errors=$(expr $errors + 1) fi done