From 7ef1f5b0c6db8cda3e3fb5044282ad22ff6704dc Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Fri, 20 Jul 2018 16:42:14 +0100 Subject: [PATCH] all.sh: Return error on keep-going failure When calling all.sh from a script and using "--keep-going", errors were sometimes missed due to all.sh always returning 0 "success" return code. Return 1 if there is any failure encountered during a "keep-going" run. --- tests/scripts/all.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 5c1ae2d96..7868144f3 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -308,6 +308,7 @@ $text" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "${start_red}FAILED: $failure_count${end_color}$failure_summary" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" + exit 1 elif [ -z "${1-}" ]; then echo "SUCCESS :)" fi