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: I2d0253b0305792862111db8b1e7adc2289863ee3
Closes-Bug: #1368661
This commit is contained in:
Kenji Yasui 2015-12-07 07:09:09 +00:00
parent 4bd27cce7d
commit fdb9dbc506
1 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,9 @@ install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = sh
commands =
sh tools/pretty_tox.sh '{posargs}'
find
commands = find . -type f -name "*.py[c|o]" -delete
sh tools/pretty_tox.sh '{posargs}'
[testenv:pep8]
commands = flake8