From 4f6f239efd3eb124ce49a5deb5bbf4edd38d0132 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Wed, 28 Sep 2016 11:27:38 -0400 Subject: [PATCH] Remove stale pyc files when running the cover job The cover job runs the unit tests and having stale pycs can skew those results, so remove the pyc files before running the tests with --coverage. Change-Id: I7393d2df36e715dbf53ba9ae6a077bdc8e79b5a5 --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index dac68872d1af..9707d2813b0b 100644 --- a/tox.ini +++ b/tox.ini @@ -65,6 +65,7 @@ commands = oslopolicy-sample-generator --config-file=etc/nova/nova-policy-genera # tests conflict with coverage. commands = coverage erase + find . -type f -name "*.pyc" -delete python setup.py testr --coverage --testr-args='{posargs}' [testenv:venv]