Skip to content

Commit 8c5b35a

Browse files
committed
tox: Drop envdir
tox now always recreates an env although the env is shared using envdir options. ~~~ $ tox -e genpolicy genpolicy: recreate env because env type changed from {'name': 'genconfig', 'type': 'VirtualEnvRunner'} to {'name': 'genpolicy', 'type': 'VirtualEnvRunner'} ~~~ According to the maintainer of tox, this functionality is not intended to be supported. tox-dev/tox#425 (comment) Change-Id: I50ac742749b3a58cfd143ce92da72118e497f2af
1 parent 774d784 commit 8c5b35a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tox.ini

-5
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ setenv =
6969

7070
[testenv:api-samples]
7171
install_command = {[testenv:functional]install_command}
72-
envdir = {toxworkdir}/shared
7372
setenv =
7473
GENERATE_SAMPLES=True
7574
PYTHONHASHSEED=0
@@ -127,7 +126,6 @@ commands =
127126
[testenv:genconfig]
128127
install_command = {[testenv:py3]install_command}
129128
sitepackages = False
130-
envdir = {toxworkdir}/pep8
131129
commands = oslo-config-generator --config-file=tools/config/cinder-config-generator.conf
132130

133131
[testenv:genpolicy]
@@ -137,7 +135,6 @@ commands = oslopolicy-sample-generator --config-file=tools/config/cinder-policy-
137135
[testenv:genopts]
138136
install_command = {[testenv:py3]install_command}
139137
sitepackages = False
140-
envdir = {toxworkdir}/pep8
141138
commands = python tools/config/generate_cinder_opts.py
142139

143140
[testenv:venv]
@@ -191,7 +188,6 @@ commands = sphinx-build -a -E -W -j auto -d releasenotes/build/doctrees -b html
191188
[testenv:gendriverlist]
192189
install_command = {[testenv:py3]install_command}
193190
sitepackages = False
194-
envdir = {toxworkdir}/venv
195191
commands = python {toxinidir}/tools/generate_driver_list.py
196192

197193
[testenv:bandit]
@@ -203,7 +199,6 @@ commands = bandit -r cinder -n5 -x cinder/tests/* -ll
203199
[testenv:bandit-baseline]
204200
install_command = {[testenv:bandit]install_command}
205201
deps = bandit==1.6.0
206-
envdir = {toxworkdir}/bandit
207202
commands = bandit-baseline -r cinder -n5 -x cinder/tests/* -ii -ll
208203

209204
[testenv:bindep]

0 commit comments

Comments
 (0)