[virt-tools-list] [PATCH virt-manager] set cov as None if python-coverage not installed

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed Jan 8 09:09:57 UTC 2014


From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>

If we didn't install python-coverage, we could not
run 'python setup.py test'.
This patch fixes this little bug.

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 setup.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/setup.py b/setup.py
index 1af356f..fa4065e 100755
--- a/setup.py
+++ b/setup.py
@@ -394,6 +394,7 @@ class TestBaseCommand(Command):
             use_cov = True
         except:
             use_cov = False
+            cov = None
 
         if use_cov:
             omit = ["/usr/*", "/*/tests/*"]
-- 
1.8.2.1




More information about the virt-tools-list mailing list