remove stale pyc before tests

Stale pyc files can create massive confusion on failing
tests. Extremely hard to debug. Remove all pyc files before we run
tests.

Change-Id: I67da587382af87389c2d04c23d84f13f341a1e46
Related-Bug: #1401600
This commit is contained in:
Sean Dague 2015-03-31 09:21:08 -04:00 committed by Matt Riedemann
parent 547a3fa4fa
commit 2b2a322e1c
1 changed files with 7 additions and 2 deletions

View File

@ -10,10 +10,15 @@ usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
commands =
find . -type f -name "*.pyc" -delete
python setup.py build_sphinx