From a7ebea04d1b20699bae474a0ffa1ed435fb8c0f7 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 7 Mar 2013 08:55:00 -0800 Subject: [PATCH] Exit run_tests with the result code of the test runner. Change-Id: Ie117e258c3ce78080ab55715daa8cf14f9967ce4 --- run_tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 03759ab62..74b5f96d5 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -171,6 +171,7 @@ if [ $recreate_db -eq 1 ]; then fi run_tests +RET=$? # NOTE(sirp): we only want to run pep8 when we're running the full-test suite, # not when we're running tests individually. To handle this, we need to @@ -187,3 +188,5 @@ if [ $coverage -eq 1 ]; then # Don't compute coverage for common code, which is tested elsewhere ${wrapper} coverage html --include='cinder/*' --omit='cinder/openstack/common/*' -d covhtml -i fi + +exit $RET -- 2.45.2