Return exit code rom run_tests.sh

Change-Id: Iddec2eb8e552f88bd04657536df094355b96b804
Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
Zane Bitter 2012-09-18 13:15:06 +02:00
parent 84da9d441d
commit fd2c75938a

View File

@ -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