Remove stale pyc files when running the cover job
The cover job runs the unit tests and having stale pycs can skew those results, so remove the pyc files before running the tests with --coverage. Change-Id: I7393d2df36e715dbf53ba9ae6a077bdc8e79b5a5
This commit is contained in:
parent
be31407cfc
commit
5ca6fb9266
1
tox.ini
1
tox.ini
@ -65,6 +65,7 @@ commands = oslopolicy-sample-generator --config-file=etc/nova/nova-policy-genera
|
||||
# tests conflict with coverage.
|
||||
commands =
|
||||
coverage erase
|
||||
find . -type f -name "*.pyc" -delete
|
||||
python setup.py testr --coverage --testr-args='{posargs}'
|
||||
|
||||
[testenv:venv]
|
||||
|
Loading…
x
Reference in New Issue
Block a user