mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
run-tests.sh exits with error code if a script fails
This commit is contained in:
parent
eb387898c3
commit
4325fdea65
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user