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
This commit is contained in:
Fernando Diaz 2015-09-14 11:00:35 -05:00
parent 803a8a0256
commit cfe64bc30c

View File

@ -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]