]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Don't build two tox envs for pep8(-constraints)
authorEric Harney <eharney@redhat.com>
Thu, 19 Nov 2015 21:48:27 +0000 (16:48 -0500)
committerEric Harney <eharney@redhat.com>
Mon, 23 Nov 2015 14:06:24 +0000 (14:06 +0000)
Currently, "tox -e pep8" builds two tox envs:
a "pep8" env, and then a "venv" env for genopts.

This is rather wasteful -- reuse the pep8 env
instead.

Change-Id: I8ba3d4e541f279e5bc62dba2b1caaac447fee7e3

tox.ini

diff --git a/tox.ini b/tox.ini
index b657bb03490978b3abc4adc63cbc0dc89a6322b6..f331f68acc43591653c9137b5827f637b698b34e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -92,12 +92,12 @@ commands = {[testenv:cover]commands}
 
 [testenv:genconfig]
 sitepackages = False
-envdir = {toxworkdir}/venv
+envdir = {toxworkdir}/pep8
 commands = {toxinidir}/tools/config/generate_sample.sh from_tox
 
 [testenv:genopts]
 sitepackages = False
-envdir = {toxworkdir}/venv
+envdir = {toxworkdir}/pep8
 commands = {toxinidir}/tools/config/generate_sample.sh from_tox --nosamplefile
 
 [testenv:venv]