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
|
${wrapper} coverage erase
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
result=0
|
||||||
|
|
||||||
# If functional or unit tests have been selected, run them
|
# If functional or unit tests have been selected, run them
|
||||||
if [ ! -z "$noseargs" ]; then
|
if [ ! -z "$noseargs" ]; then
|
||||||
run_tests
|
run_tests
|
||||||
|
result=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run pep8 if it was selected
|
# 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
|
# Don't compute coverage for common code, which is tested elsewhere
|
||||||
${wrapper} coverage html --include='heat/*' --omit='heat/openstack/common/*' -d covhtml -i
|
${wrapper} coverage html --include='heat/*' --omit='heat/openstack/common/*' -d covhtml -i
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit $result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user