From d62f8b2a13cf7e7bcc4963e541d27490dda77757 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 29 Jul 2018 10:20:24 +0100 Subject: [PATCH] Ensure we report failures better --- test/runtest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runtest.sh b/test/runtest.sh index 243729d..708f84a 100755 --- a/test/runtest.sh +++ b/test/runtest.sh @@ -73,8 +73,11 @@ done echo "Tests:${SVGTESTTOTC} Pass:${SVGTESTPASSC} Fail:${SVGTESTFAILC} Error:${SVGTESTERRC}" # exit code -if [ "${SVGTESTERRC}" -gt 0 ]; then +if [ "${SVGTESTFAILC}" -gt 0 ]; then exit 1 fi +if [ "${SVGTESTERRC}" -gt 0 ]; then + exit 2 +fi exit 0 -- 2.44.2