From 63d43234353a9e7697ea3f1dcf805a785101d437 Mon Sep 17 00:00:00 2001 From: Jay Faulkner Date: Fri, 8 Apr 2016 22:32:02 +0000 Subject: [PATCH] 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 --- .gitignore | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bfa6b1372..a0a6c4c38 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ ChangeLog *.egg .tox/* devenv/* +cover .coverage coverage.xml .testrepository diff --git a/tox.ini b/tox.ini index c5c68e453..3a1915f16 100644 --- a/tox.ini +++ b/tox.ini @@ -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