tests: fix incrementing errors (#1297)

This commit is contained in:
Daniel Hahler 2016-12-25 15:13:22 +01:00 committed by GitHub
parent 59cd409517
commit 4abd820051
1 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ for f in $tests; do
if [ ! -r "$f" ]; then if [ ! -r "$f" ]; then
echo "===> ERROR $f is not readable! <===" echo "===> ERROR $f is not readable! <==="
((errors + 1)) ((errors++))
continue continue
fi fi
@ -224,11 +224,11 @@ for f in $tests; do
grep -q -E '[Ee]rror|assertion failed' "$awesome_log"; then grep -q -E '[Ee]rror|assertion failed' "$awesome_log"; then
echo "===> ERROR running $f! <===" echo "===> ERROR running $f! <==="
grep --color -o --binary-files=text -E '.*[Ee]rror.*|.*assertion failed.*' "$awesome_log" || true grep --color -o --binary-files=text -E '.*[Ee]rror.*|.*assertion failed.*' "$awesome_log" || true
((errors + 1)) ((errors++))
fi fi
done done
if ! [ $errors = 0 ]; then if ((errors)); then
if [ "$TEST_PAUSE_ON_ERRORS" = 1 ]; then if [ "$TEST_PAUSE_ON_ERRORS" = 1 ]; then
echo "Pausing... press Enter to continue." echo "Pausing... press Enter to continue."
read -r read -r