Scope coverage report generation to nova module.

Coverage report generation was not using --include filters.
This resulted in generating a report that included all external
dependencies. Some of these may include problematic characters for
utf8 decoding. In the odd case this was found, coverage would fail
with a UnicodeDecodeError.

Fixes bug #987077.

Change-Id: I276698e65ac1037972209a406058168433cd826b
This commit is contained in:
Renier Morales 2012-04-23 22:36:19 -04:00
parent f05841caf3
commit bcb53dfc6a
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ tools/conf/nova.conf*
cover/*
dist/*
.coverage
covhtml

View File

@ -160,6 +160,7 @@ Paul McMillan <paul.mcmillan@nebula.com>
Paul Voccio <paul@openstack.org>
Peng Yong <ppyy@pubyun.com>
Philip Knouff <philip.knouff@mailtrust.com>
Renier Morales <renierm@us.ibm.com>
Renuka Apte <renuka.apte@citrix.com>
Ricardo Carrillo Cruz <emaildericky@gmail.com>
Rick Clark <rick@openstack.org>

View File

@ -168,5 +168,5 @@ fi
if [ $coverage -eq 1 ]; then
echo "Generating coverage report in covhtml/"
${wrapper} coverage html -d covhtml -i
${wrapper} coverage html --include=nova/* -d covhtml -i
fi