From 4325fdea65cf69ec50258e96df2dabb6bda39415 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 20 Aug 2018 14:22:36 -0300 Subject: [PATCH] run-tests.sh exits with error code if a script fails --- run-tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index e4b157b9a..97ac9e2f6 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -32,15 +32,20 @@ EOF echo ---------------------------------------------------------------------- echo "Testing scripts..." +result=0 for jsfile in scripts/*.js ; do [[ $jsfile =~ console ]] && continue echo "Running $jsfile" if ! $ASEPRITE -b --script $jsfile > tmp ; then - fail + cat tmp + echo FAILED + result=1 fi done echo ---------------------------------------------------------------------- echo Done echo ---------------------------------------------------------------------- + +exit $result