From cfe64bc30c10535392fbdd32d5a055ba878a1ad0 Mon Sep 17 00:00:00 2001 From: Fernando Diaz Date: Mon, 14 Sep 2015 11:00:35 -0500 Subject: [PATCH] Remove .pyc files before performing functional tests This will remove the .pyc files from the functionaltests path. Will avoid conditions where timestamps get out of sync. Change-Id: I8bb3b96d6164eb365477cf6cc1eb2cf38f6d4206 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 3c34ff1f9..72597e9c7 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = + /usr/bin/find . -type f -name "*.pyc" -delete python setup.py testr --coverage --testr-args='{posargs}' coverage combine coverage report -m @@ -26,6 +27,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = + /usr/bin/find . -type f -name "*.pyc" -delete python -m testtools.run \ barbican.tests.common.test_utils \ barbican.tests.common.test_hrefs \ @@ -60,6 +62,7 @@ commands= deps = -r{toxinidir}/test-requirements.txt setenv = OS_TEST_PATH={toxinidir}/functionaltests commands = + /usr/bin/find . -type f -name "*.pyc" -delete /bin/bash {toxinidir}/functionaltests/pretty_tox.sh '{posargs}' [flake8]