Merge "Fix coverage test errors in os-xenapi"

This commit is contained in:
Jenkins 2017-06-05 09:00:54 +00:00 committed by Gerrit Code Review
commit c917d650e7

View File

@ -27,10 +27,14 @@ commands = flake8 {posargs}
commands = {posargs}
[testenv:cover]
# Use python2.7 explicitly so that it's compatible with python2.4 used for plugins.
basepython=/usr/bin/python2.7
commands =
coverage erase
find . -type f -name "*.pyc" -delete
python setup.py testr --coverage --testr-args='{posargs}'
coverage run -m unittest discover
coverage report
coverage html
[testenv:docs]
commands = python setup.py build_sphinx