From 5b782426063387c87d1fe5d7a7e55f108d8f24e1 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sun, 31 May 2020 20:26:07 +1000 Subject: [PATCH] Fail early if any of the tests fail, rather than continue and possibly exit 0 --- tests/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run.sh b/tests/run.sh index 3c792cd3..184dfc16 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -20,7 +20,7 @@ do shift done -pytest $PARAMS -vvv ./tests/test_cli*.py +pytest $PARAMS -vvv ./tests/test_cli*.py || exit 1 for filename in ./tests/test_gui_*.py; do - pytest $PARAMS -vvv --no-qt-log $filename + pytest $PARAMS -vvv --no-qt-log $filename || exit 1 done