From 49cd8357143a4bc1e95f273f2ac4a7338453908f Mon Sep 17 00:00:00 2001 From: Lucky samadhiya Date: Fri, 16 Sep 2016 13:46:20 +0530 Subject: [PATCH] delete python bytecode including pyo before every test run Change-Id: Ic5eaee3c70bdd9011c9f71a1ff0eba6f32d4dee9 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 2c59bc89..0dc4963b 100644 --- a/tox.ini +++ b/tox.ini @@ -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