From 28c7eacab22b0d6c6bfea9e39d28a5cc1fd6a8a8 Mon Sep 17 00:00:00 2001 From: Adam Harwell Date: Tue, 31 Mar 2015 11:18:31 -0500 Subject: [PATCH] Fix stale pyc issue for unit tests See the following for more info: * http://lists.openstack.org/pipermail/openstack-dev/2014-September/045845.html * http://lists.openstack.org/pipermail/openstack-dev/2014-September/045873.html * https://review.openstack.org/#/c/121044/ Change-Id: I98161082cd72b92a7af44f8be8b5a92328a72281 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index acd7dd33b4..3fb454e734 100644 --- a/tox.ini +++ b/tox.ini @@ -7,10 +7,13 @@ skipsdist = True usedevelop = True setenv = VIRTUAL_ENV={envdir} install_command = pip install -U {opts} {packages} +whitelist_externals = find deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/doc-requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' +commands = + find . -type f -name "*.pyc" -delete + python setup.py testr --slowest --testr-args='{posargs}' [testenv:cover] commands = python setup.py testr --coverage --testr-args='{posargs}'