delete python bytecode including pyo before every test run

Change-Id: Ic5eaee3c70bdd9011c9f71a1ff0eba6f32d4dee9
This commit is contained in:
Lucky samadhiya 2016-09-16 13:46:20 +05:30
parent d29569882f
commit 49cd835714
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
/usr/bin/find . -type f -name "*.py[c|o]" -delete
coverage erase
python setup.py testr --coverage --testr-args='{posargs}'
coverage report -m
@ -66,7 +66,7 @@ commands =
deps = -r{toxinidir}/test-requirements.txt
setenv = OS_TEST_PATH={toxinidir}/functionaltests
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
/usr/bin/find . -type f -name "*.py[c|o]" -delete
/bin/bash {toxinidir}/functionaltests/pretty_tox.sh '{posargs}'
passenv = KMIP_PLUGIN_ENABLED