aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank A. Zdarsky <fzdarsky@redhat.com>2017-07-09 11:15:41 +0200
committerFrank A. Zdarsky <fzdarsky@redhat.com>2017-07-09 11:15:41 +0200
commitbb3a4bfce81cb7c9cf90ca1e697ee1ac6dfdcc1e (patch)
tree27ecf51b515234fc35707d30d4254b7cbda35153
parent03d3a5dea1b70c62d585dd6de5e3f9c04345e58b (diff)
Fix 'tox -e cover'
'tox -e cover' fails as --coverage-package-name option for 'testr' is not recognized. A work-around proposed by Infra team (see https://bugs.launchpad.net/neutron/+bug/1454772) is to replace 'testr' with 'test'. This patch implements this change and adds the cover/ directory to .gitignore. Change-Id: I659445ea479ea80a4f21d6ebca896abb4fb104f2 Closes-Bug: #1703177
-rw-r--r--.gitignore3
-rw-r--r--tox.ini2
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 1399c98..c17df2b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ pip-log.txt
.tox
nosetests.xml
.testrepository
+cover
# Translations
*.mo
@@ -48,4 +49,4 @@ ChangeLog
# Editors
*~
-.*.swp \ No newline at end of file
+.*.swp
diff --git a/tox.ini b/tox.ini
index a1bd79c..1dd9da1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,7 +19,7 @@ commands = flake8
commands = {posargs}
[testenv:cover]
-commands = python setup.py testr --coverage --coverage-package-name=os_net_config --testr-args='{posargs}'
+commands = python setup.py test --coverage --coverage-package-name=os_net_config --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx