From d6b25aeb1ae329829c9cc7b67a92002fc40ed86b Mon Sep 17 00:00:00 2001 From: Nam Nguyen Hoai Date: Wed, 24 Jan 2018 10:05:05 +0700 Subject: [PATCH] Update virtual_environment for genconfig and genpolicy It is not necessary to create two new virtual environments when run tox with genconfig and genpolicy. We can use pep8 virtual_environment for those tox., it will reduce time to run tox. Change-Id: Ia07d325ed9550c8a201039754d96341f051c63f0 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index c8f873eef..1b355300e 100644 --- a/tox.ini +++ b/tox.ini @@ -40,6 +40,7 @@ commands = [testenv:genconfig] whitelist_externals = bash +envdir = {toxworkdir}/pep8 commands = oslo-config-generator --config-file etc/oslo-config-generator/barbican.conf @@ -123,6 +124,7 @@ deps = bindep commands = bindep test [testenv:genpolicy] +envdir = {toxworkdir}/pep8 commands = oslopolicy-sample-generator --config-file=etc/oslo-config-generator/policy.conf [hacking]