Fix tox to clean python cache
[doctor.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 6e0d8b4..8f734fc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -29,10 +29,12 @@ passenv =
     INSTALLER_TYPE
     INSTALLER_IP
     INSPECTOR_TYPE
+    ADMIN_TOOL_TYPE
     TEST_CASE
     SSH_KEY
 changedir = {toxinidir}/doctor_tests
 commands = doctor-test
+           /bin/find {toxinidir} -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
 
 [testenv:pep8]
 changedir = {toxinidir}