Commit a5d6a576 by Edward Thomson

ci: stop on test failure

parent 0a79012e
...@@ -17,6 +17,7 @@ TMPDIR=${TMPDIR:-/tmp} ...@@ -17,6 +17,7 @@ TMPDIR=${TMPDIR:-/tmp}
USER=${USER:-$(whoami)} USER=${USER:-$(whoami)}
SUCCESS=1 SUCCESS=1
CONTINUE_ON_FAILURE=0
cleanup() { cleanup() {
echo "Cleaning up..." echo "Cleaning up..."
...@@ -64,6 +65,10 @@ run_test() { ...@@ -64,6 +65,10 @@ run_test() {
done done
if [ "$FAILED" -ne 0 ]; then if [ "$FAILED" -ne 0 ]; then
if [ "$CONTINUE_ON_FAILURE" -ne 1 ]; then
exit 1
fi
SUCCESS=0 SUCCESS=0
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment