From 0a273e3a9e84a174c5d25d3dbd9c598b199a4f1b Mon Sep 17 00:00:00 2001 From: tengqm Date: Mon, 14 Mar 2016 10:43:03 -0400 Subject: [PATCH] Fix tox env for coverage test According to previous discussions on mailing list, we should use 'test' instead of 'testr' for the coverage test. This patch also removes a outdated path from coverage tests. Change-Id: I959d44b96a19097411de68b1452850ddef8ea9dd --- .coveragerc | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 97848e964..e474e455a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ [run] branch = True source = senlin -omit = */tests/*,senlin/openstack/common/* +omit = */tests/* [report] ignore_errors = True diff --git a/tox.ini b/tox.ini index 238d92a10..3c829e21e 100644 --- a/tox.ini +++ b/tox.ini @@ -58,7 +58,7 @@ commands = {posargs} [testenv:cover] setenv = VIRTUAL_ENV={envdir} -commands = python setup.py testr --coverage --testr-args="^(?!senlin\.tests\.functional){posargs}" +commands = python setup.py test --coverage --testr-args="^(?!senlin\.tests\.functional){posargs}" [testenv:docs] deps = -r{toxinidir}/test-requirements.txt