diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-01-24 16:16:13 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-01-24 16:16:13 +0000 |
commit | b3b3f6ec7d20609b07f8b6ac584bb8c27ab7c84a (patch) | |
tree | 6890a91c31e6c38d8481dd71caaa8dbbecb1411c /run_tests.sh | |
parent | 97a5274f5baea7072c0992e2d2becca539b92a11 (diff) | |
parent | abd8957650641338e473db61cfb12f738a0d5d09 (diff) | |
download | nova-b3b3f6ec7d20609b07f8b6ac584bb8c27ab7c84a.tar.gz |
Merge "Generate coverage even if tests failed."
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/run_tests.sh b/run_tests.sh index aea564b780..11bc8b518e 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -99,6 +99,13 @@ function run_tests { copy_subunit_log + if [ $coverage -eq 1 ]; then + echo "Generating coverage report in covhtml/" + # Don't compute coverage for common code, which is tested elsewhere + ${wrapper} coverage combine + ${wrapper} coverage html --include='nova/*' --omit='nova/openstack/common/*' -d covhtml -i + fi + return $RESULT } @@ -201,10 +208,3 @@ if [ -z "$testrargs" ]; then run_pep8 fi fi - -if [ $coverage -eq 1 ]; then - echo "Generating coverage report in covhtml/" - # Don't compute coverage for common code, which is tested elsewhere - ${wrapper} coverage combine - ${wrapper} coverage html --include='nova/*' --omit='nova/openstack/common/*' -d covhtml -i -fi |