delete python bytecode before every test run

Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.

This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Closes-Bug: #1368661

Change-Id: Idf3a46d8c95806f2d2ce28ce84ced12b625e53df
(cherry picked from commit a2530ed1e3)
This commit is contained in:
Sean Dague 2014-09-12 05:47:03 -04:00 committed by Matt Riedemann
parent 3501ec2cb7
commit cc86ef56f6
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args='{posargs}'
[tox:jenkins]