Fix coverage for IPA

ironic-python-agent coverage was broken, tox -ecover printed error
messages. This change fixes the coverage command to work reliably, and
adds the directory generated by the job to gitignore.

Change-Id: I36656c17c13b5b4bce8e7eca2ec0f12c1bf76f29
This commit is contained in:
Jay Faulkner 2016-04-08 22:32:02 +00:00
parent 491371e54b
commit 63d4323435
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ ChangeLog
*.egg
.tox/*
devenv/*
cover
.coverage
coverage.xml
.testrepository

View File

@ -35,7 +35,7 @@ commands =
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage {posargs:ironic_python_agent}
python setup.py test --coverage --coverage-package-name ironic_python_agent {posargs}
[testenv:venv]
setenv = PYTHONHASHSEED=0