From c36052b0ec181aefb8362ee2cf77747d6ccc06c7 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 6 Oct 2015 22:22:42 +0900 Subject: [PATCH] tox.ini: Fix cover by giving the source directory explicitly By default, testr assumes that the name of distribution ([metadata]name in setup.cfg) matches the name of the source directory. However, they are different for this project. Fix the problem by giving the source directory explicitly via an option provided by pbr. Closes-Bug: #1502002 Change-Id: Ib17d53230e5a36a028438c0f2919f07c6013bfe2 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index cc49f87..377be25 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ commands = flake8 commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = python setup.py testr --coverage --coverage-package-name=neutron_taas --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx