From e93d93d7deb29b09dd68abfddd8a34cec8fed9b3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Jun 2010 00:16:51 +0000 Subject: test-lib: set NO_PROXY to counter http_proxy Some testers (like myself) use http_proxy when isolating gems to avoid wasting bandwidth, but we don't proxy requests to localhost. --- t/test-lib.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/test-lib.sh b/t/test-lib.sh index 5cf5201..4218dff 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -3,6 +3,12 @@ . ./my-tap-lib.sh set +u + +# sometimes we rely on http_proxy to avoid wasting bandwidth with Isolate +# and multiple Ruby versions +NO_PROXY=${UNICORN_TEST_ADDR-127.0.0.1} +export NO_PROXY + if test -z "$model" then # defaulting to Base would unfortunately fail some concurrency tests -- cgit v1.2.3-24-ge0c7