]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Pass environment variables of proxy to tox
authorchen-li <shchenli@cn.ibm.com>
Wed, 13 Jan 2016 10:31:57 +0000 (18:31 +0800)
committerArmando Migliaccio <armamig@gmail.com>
Wed, 13 Jan 2016 18:51:18 +0000 (18:51 +0000)
When a development environment is under a proxy, tox is failed
even if environment variables of the proxy are set. This is a
new feature above tox 2.0, you can check it from [1].

This patch fix this problem.

[1]. https://tox.readthedocs.org/en/latest/example/basic.html#passing-down-environment-variables

Change-Id: I9dae04de7053773cb5ba13a809145b86cb149614

tox.ini

diff --git a/tox.ini b/tox.ini
index faecce1d2e19a68148f8f941e827cfe038a78f35..683eb509131f5c464cceb7fc05a79a7274410982 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ skipsdist = True
 
 [testenv]
 setenv = VIRTUAL_ENV={envdir}
-passenv = TRACE_FAILONLY GENERATE_HASHES
+passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
 usedevelop = True
 install_command =
                   constraints: {[testenv:common-constraints]install_command}