Fix the coverage job in tox

This commit fixes the coverage job in tox. It relies on pbr to
actually make the coverage calls before and after running the tests.
However, by default pbr assumes the project name in setup.cfg is the
same as the directory containing the source. However that isn't the
case here. This commits corrects this by using the flag to pretend
that package name is the same as the source dir. The pbr requirement
is also updated to be >=0.8.1 because this is the min version required
to use the option exploited by this patch.

Change-Id: Icea30575538571fe842632901e994be3ac0bbc80
This commit is contained in:
Matthew Treinish 2014-08-28 11:03:03 -04:00
parent b12fefa97e
commit a745d09d03
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
pbr>=0.6,!=0.7,<1.0
pbr>=0.8.1
Babel>=1.3
fixtures>=0.3.14
oslo.config>=1.4.0.0a3

View File

@ -19,7 +19,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='tempest_lib' --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx