Mercurial > hg
comparison tests/test-http-proxy.t @ 40973:97484e1d1834
tests: followup on network related errors on Debian 9
First, update test-clonebundles.t which was failing since the introduction of
the `$EADDRNOTAVAIL$` common pattern.
Also update two tests from 8695fbe17f7c with a more compact condition line.
Differential Revision: https://phab.mercurial-scm.org/D5445
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 16 Dec 2018 18:51:48 +0000 |
parents | 8695fbe17f7c |
children | f2f538725d07 |
comparison
equal
deleted
inserted
replaced
40972:2393c4044214 | 40973:97484e1d1834 |
---|---|
88 | 88 |
89 bad host:port for proxy ("Protocol not supported" can happen on | 89 bad host:port for proxy ("Protocol not supported" can happen on |
90 misconfigured hosts) | 90 misconfigured hosts) |
91 | 91 |
92 $ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f | 92 $ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f |
93 abort: error: (Connection refused|Protocol not supported|.* actively refused it) (re) (?) | 93 abort: error: (Connection refused|Protocol not supported|.* actively refused it|\$EADDRNOTAVAIL\$) (re) |
94 abort: error: $EADDRNOTAVAIL$ (?) | |
95 [255] | 94 [255] |
96 | 95 |
97 do not use the proxy if it is in the no list | 96 do not use the proxy if it is in the no list |
98 | 97 |
99 $ http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g | 98 $ http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g |