Fix coverage configuration and execution

A configuration error prevents the successful creation of code
coverage. This patch corrects the .coveragerc omit setup and the
tox package name generation.

Closes-Bug: 1489164
Change-Id: I172708fe9048ed6208eb404974a5fa2e42bb810a
This commit is contained in:
Ankit Agrawal 2016-03-11 09:18:38 +00:00
parent 94d637cfcd
commit 4236c93750
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[run] [run]
branch = True branch = True
source = openstack source = openstack
omit = openstack/tests/*,openstack/openstack/* omit = openstack/tests/*
[report] [report]
ignore_errors = True ignore_errors = True

View File

@ -38,7 +38,7 @@ commands = {posargs}
; If this fails for you, you may be running an old version of tox. ; If this fails for you, you may be running an old version of tox.
; Run 'pip install tox' to install a newer version of tox. ; Run 'pip install tox' to install a newer version of tox.
[testenv:cover] [testenv:cover]
commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}' commands = python setup.py test --coverage --coverage-package-name=openstack --testr-args='{posargs}'
[testenv:docs] [testenv:docs]
commands = python setup.py build_sphinx commands = python setup.py build_sphinx