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:
parent
547a3fa4fa
commit
2b2a322e1c
9
tox.ini
9
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue