From 4abd820051d3e4b09de701de5c2ea33497132997 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 25 Dec 2016 15:13:22 +0100 Subject: [PATCH] tests: fix incrementing errors (#1297) --- tests/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index 5ca1de9c..dab9341f 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -200,7 +200,7 @@ for f in $tests; do if [ ! -r "$f" ]; then echo "===> ERROR $f is not readable! <===" - ((errors + 1)) + ((errors++)) continue fi @@ -224,11 +224,11 @@ for f in $tests; do 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" || true - ((errors + 1)) + ((errors++)) fi done -if ! [ $errors = 0 ]; then +if ((errors)); then if [ "$TEST_PAUSE_ON_ERRORS" = 1 ]; then echo "Pausing... press Enter to continue." read -r