]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Pass proxy environment variables to tox
authorYuiko Takada <takada-yuiko@mxn.nes.nec.co.jp>
Mon, 15 Jun 2015 01:12:24 +0000 (10:12 +0900)
committerYuiko Takada <yui-takada@tg.jp.nec.com>
Tue, 16 Jun 2015 07:50:30 +0000 (16:50 +0900)
When a development environment is under a proxy, tox fails even if
environment variables of the proxy are set.

This patch fixes this problem by passing (upper case and lower case)
http_proxy, https_proxy and no_proxy from environment to tox.

See: commit 2d02ebb775ec44a14e325c56d4a901c5705fbb94

Change-Id: Ib7964fd5ea4fb8398cdb4cd94a70fe7fae49f973

tox.ini

diff --git a/tox.ini b/tox.ini
index 3060c8ad87a734191370a61e2cb2e4cbe12a5009..0e18f68299e751333c9f07a218c96b547c9a340a 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -16,6 +16,7 @@ deps = -r{toxinidir}/requirements.txt
 commands =
   bash tools/pretty_tox.sh '{posargs}'
 whitelist_externals = bash
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
 
 [tox:jenkins]
 downloadcache = ~/cache/pip