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 ----------------------------------------------------------------------
|
||||||
echo "Testing scripts..."
|
echo "Testing scripts..."
|
||||||
|
result=0
|
||||||
for jsfile in scripts/*.js ; do
|
for jsfile in scripts/*.js ; do
|
||||||
[[ $jsfile =~ console ]] && continue
|
[[ $jsfile =~ console ]] && continue
|
||||||
|
|
||||||
echo "Running $jsfile"
|
echo "Running $jsfile"
|
||||||
if ! $ASEPRITE -b --script $jsfile > tmp ; then
|
if ! $ASEPRITE -b --script $jsfile > tmp ; then
|
||||||
fail
|
cat tmp
|
||||||
|
echo FAILED
|
||||||
|
result=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo ----------------------------------------------------------------------
|
echo ----------------------------------------------------------------------
|
||||||
echo Done
|
echo Done
|
||||||
echo ----------------------------------------------------------------------
|
echo ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
exit $result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user