From 190b4e27c805b9b15da89141b2a8acd70b94ec42 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Sat, 28 Apr 2012 22:01:56 -0400 Subject: 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 --- run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit