]> diplodocus.org Git - nmh/commitdiff
test/common.sh.in: Unset libcurl(3)'s proxy environment variables.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 20 Jan 2018 08:57:40 +0000 (08:57 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 20 Jan 2018 09:02:03 +0000 (09:02 +0000)
Debian's packager, Alexander Zanger, reported test/oauth/test-* problems
due to environment variables for the system's network proxies.  David
Levine suggested the unsetting of them.  The tests only make HTTP
connections so just the variables affecting those are unset.

test/common.sh.in

index 8c054cd..0cb64cc 100644 (file)
@@ -39,6 +39,9 @@ unset MHLDEBUG MHWDEBUG PAGER XOAUTH SMTPUTF8
 #### Set LC_ALL in individual tests as needed.  Unset these so
 #### that we don't depend on user's settings in other tests.
 unset LANG LC_ALL LC_CTYPE
+# Don't have libcurl(3) use the environment's proxy for tests'
+# connections to 127.0.0.1.
+unset http_proxy ALL_PROXY all_proxy
 
 #### Use a test dir for tmp files when MHTMPDIR applies.
 MHTMPDIR="$MH_TEST_DIR"/Mail