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