From bcb53dfc6a149f94b4509ce90f89120b526f5582 Mon Sep 17 00:00:00 2001 From: Renier Morales Date: Mon, 23 Apr 2012 22:36:19 -0400 Subject: [PATCH] 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 --- .gitignore | 1 + Authors | 1 + run_tests.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5738efbd61af..32a894c80898 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ tools/conf/nova.conf* cover/* dist/* .coverage +covhtml diff --git a/Authors b/Authors index e7b82281d45c..c21276728dac 100644 --- a/Authors +++ b/Authors @@ -160,6 +160,7 @@ Paul McMillan Paul Voccio Peng Yong Philip Knouff +Renier Morales Renuka Apte Ricardo Carrillo Cruz Rick Clark diff --git a/run_tests.sh b/run_tests.sh index 97d229f673ae..5f808cbeb9d9 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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