From: Zane Bitter Date: Tue, 18 Sep 2012 11:15:06 +0000 (+0200) Subject: Return exit code rom run_tests.sh X-Git-Tag: 2014.1~1388 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fd2c75938abbcb2eb434efaa4d3114c76288d7d6;p=openstack-build%2Fheat-build.git Return exit code rom run_tests.sh Change-Id: Iddec2eb8e552f88bd04657536df094355b96b804 Signed-off-by: Zane Bitter --- diff --git a/run_tests.sh b/run_tests.sh index 3663a71d..086a6769 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -97,9 +97,12 @@ if [ "$coverage" == 1 ]; then ${wrapper} coverage erase fi +result=0 + # If functional or unit tests have been selected, run them if [ ! -z "$noseargs" ]; then run_tests + result=$? fi # Run pep8 if it was selected @@ -113,3 +116,5 @@ if [ "$coverage" == 1 ]; then # Don't compute coverage for common code, which is tested elsewhere ${wrapper} coverage html --include='heat/*' --omit='heat/openstack/common/*' -d covhtml -i fi + +exit $result