diff options
-rwxr-xr-x | run_tests.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh index e7040e77f..6770e64cb 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -17,6 +17,7 @@ run_flake8() { flake8 yardstick > $logfile if [ $? -ne 0 ]; then echo "FAILED, result in $logfile" + exit 1 else echo "OK, result in $logfile" fi @@ -28,6 +29,7 @@ run_tests() { python -m unittest discover -s yardstick/tests &> $logfile if [ $? -ne 0 ]; then echo "FAILED, result in $logfile" + exit 1 else echo "OK, result in $logfile" fi |