summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorin Hochstein <lorin@nimbisservices.com>2012-04-28 22:01:56 -0400
committerLorin Hochstein <lorin@nimbisservices.com>2012-04-28 22:06:07 -0400
commit190b4e27c805b9b15da89141b2a8acd70b94ec42 (patch)
treec40c482ee60cb72efa77cf80c2940c3a875a6db7
parent76bb37e049818cbde4ca890566d01e85439ce517 (diff)
Ignore common code in coverage calculations.
Ignore nova/openstack/common code when calculating coverage. We do this because the unit tests for the common code are in a different repository. Change-Id: I0103b8acfc4cdaace68a18b1d1723a13595debe2
-rwxr-xr-xrun_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 31b707449..0b5a35166 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -171,5 +171,6 @@ fi
if [ $coverage -eq 1 ]; then
echo "Generating coverage report in covhtml/"
- ${wrapper} coverage html --include=nova/* -d covhtml -i
+ # Don't compute coverage for common code, which is tested elsewhere
+ ${wrapper} coverage html --include='nova/*' --omit='nova/openstack/common/*' -d covhtml -i
fi