From fd2c75938abbcb2eb434efaa4d3114c76288d7d6 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Tue, 18 Sep 2012 13:15:06 +0200 Subject: [PATCH] Return exit code rom run_tests.sh Change-Id: Iddec2eb8e552f88bd04657536df094355b96b804 Signed-off-by: Zane Bitter --- run_tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 3663a71d56..086a67690c 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