Delete python bytecode before every test run

Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.

Change-Id: I7908520f6e2935ffacf5d914a01078939392e2e2
Closes-Bug: #1368661
This commit is contained in:
Kenji Yasui 2015-12-07 07:43:09 +00:00
parent b6397636dc
commit 623f08928e
1 changed files with 2 additions and 0 deletions

View File

@ -24,10 +24,12 @@ install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
whitelist_externals =
find
coverage
rm
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --coverage --testr-args="{posargs}"
coverage report -m
rm -f .coverage