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:
Matt Riedemann 2016-09-28 11:27:38 -04:00
parent c95b012887
commit 4f6f239efd
1 changed files with 1 additions and 0 deletions

View File

@ -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]