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:
parent
b12fefa97e
commit
a745d09d03
@ -1,4 +1,4 @@
|
|||||||
pbr>=0.6,!=0.7,<1.0
|
pbr>=0.8.1
|
||||||
Babel>=1.3
|
Babel>=1.3
|
||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
oslo.config>=1.4.0.0a3
|
oslo.config>=1.4.0.0a3
|
||||||
|
2
tox.ini
2
tox.ini
@ -19,7 +19,7 @@ commands = flake8
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[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]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
Loading…
Reference in New Issue
Block a user