]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Exit run_tests with the result code of the test runner.
authorJames E. Blair <jeblair@openstack.org>
Thu, 7 Mar 2013 16:55:00 +0000 (08:55 -0800)
committerJames E. Blair <jeblair@openstack.org>
Thu, 7 Mar 2013 16:55:00 +0000 (08:55 -0800)
Change-Id: Ie117e258c3ce78080ab55715daa8cf14f9967ce4

run_tests.sh

index 03759ab6265626b3280060bf0c76a62ce19f5d82..74b5f96d5f014495ce9ff99f233993fa888e7f48 100755 (executable)
@@ -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