]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Ensure we report failures better
authorDaniel Silverstone <dsilvers@digital-scurf.org>
Sun, 29 Jul 2018 09:20:24 +0000 (10:20 +0100)
committerDaniel Silverstone <dsilvers@digital-scurf.org>
Sun, 29 Jul 2018 09:20:24 +0000 (10:20 +0100)
test/runtest.sh

index 243729dea406938c02210978da591283c85eec0c..708f84a7e582dfb459028ce91effc5c5a486c3d0 100755 (executable)
@@ -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