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:
parent
4bd27cce7d
commit
fdb9dbc506
3
tox.ini
3
tox.ini
@ -13,7 +13,8 @@ install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals = sh
|
||||
commands =
|
||||
find
|
||||
commands = find . -type f -name "*.py[c|o]" -delete
|
||||
sh tools/pretty_tox.sh '{posargs}'
|
||||
|
||||
[testenv:pep8]
|
||||
|
Loading…
Reference in New Issue
Block a user