From: Daniel Silverstone Date: Sun, 29 Jul 2018 09:20:24 +0000 (+0100) Subject: Ensure we report failures better X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d62f8b2a13cf7e7bcc4963e541d27490dda77757;p=libsvgtiny.git Ensure we report failures better --- 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