From: James E. Blair Date: Thu, 7 Mar 2013 16:55:00 +0000 (-0800) Subject: Exit run_tests with the result code of the test runner. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a7ebea04d1b20699bae474a0ffa1ed435fb8c0f7;p=openstack-build%2Fcinder-build.git Exit run_tests with the result code of the test runner. Change-Id: Ie117e258c3ce78080ab55715daa8cf14f9967ce4 --- 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