From e4bf5efd890bdafc887ece37412c3d887641ef7a Mon Sep 17 00:00:00 2001 From: miaohb <miao.hongbao@zte.com.cn> Date: Tue, 21 Feb 2017 10:50:50 +0800 Subject: [PATCH] Revise the functional env in tox.ini This patch deletes the pyc and pyo before doing functional test. Change-Id: I0b646bad8e5867644fcd85556c607a9068b3158c --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index eefe866d..50a300ef 100644 --- a/tox.ini +++ b/tox.ini @@ -72,7 +72,9 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build import_exceptions = zunclient._i18n [testenv:functional] -commands = ostestr {posargs} +commands = + find . -type f -name "*.py[c|o]" -delete + ostestr {posargs} setenv = {[testenv]setenv} OS_TEST_PATH = ./zunclient/tests/functional/osc/v1