From 22c9496a9f0c88991d6d3dedd7f0b6443452901b Mon Sep 17 00:00:00 2001 From: Hans Feldt Date: Thu, 21 May 2015 11:27:57 +0200 Subject: fix run_tests exit status previously run_tests always returned 0 no matter the result. It can now be hooked up to a gerrit gate job. Change-Id: I2c4bccec71c179fd2b1b965613c34179da830ac5 JIRA: - Signed-off-by: Hans Feldt --- run_tests.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'run_tests.sh') 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 -- cgit 1.2.3-korg