Fix coverage test errors in os-xenapi

Change-Id: I9fe88a7dfd1bcdb023e14475bc1344013abbdb66
This commit is contained in:
jianghua wang 2017-06-01 11:12:07 +01:00
parent ab4f0a6995
commit 5185a0265c
1 changed files with 5 additions and 1 deletions

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