Return exit code rom run_tests.sh
Change-Id: Iddec2eb8e552f88bd04657536df094355b96b804 Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
parent
84da9d441d
commit
fd2c75938a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user