f2f538725d07 — Mathias De Mare 5 years ago
tests: fix regression tests failing on CentOS 7

Differential Revision: https://phab.mercurial-scm.org/D5877
3 files changed, 3 insertions(+), 2 deletions(-)

M tests/test-clonebundles.t
M tests/test-http-proxy.t
M tests/test-lfs-serve-access.t
M tests/test-clonebundles.t +1 -1
@@ 64,7 64,7 @@ Server is not running aborts
   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/clonebundles.manifest
   $ hg clone http://localhost:$HGPORT server-not-runner
   applying clone bundle from http://localhost:$HGPORT1/bundle.hg
-  error fetching bundle: (.* refused.*|Protocol not supported|(.* )?\$EADDRNOTAVAIL\$) (re)
+  error fetching bundle: (.* refused.*|Protocol not supported|(.* )?\$EADDRNOTAVAIL\$|.* No route to host) (re)
   abort: error applying bundle
   (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
   [255]

          
M tests/test-http-proxy.t +1 -1
@@ 90,7 90,7 @@ bad host:port for proxy ("Protocol not s
 misconfigured hosts)
 
   $ http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f
-  abort: error: (Connection refused|Protocol not supported|.* actively refused it|\$EADDRNOTAVAIL\$) (re)
+  abort: error: (Connection refused|Protocol not supported|.* actively refused it|\$EADDRNOTAVAIL\$|No route to host) (re)
   [255]
 
 do not use the proxy if it is in the no list

          
M tests/test-lfs-serve-access.t +1 -0
@@ 84,6 84,7 @@ Reasonable hint for a misconfigured blob
   $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing
   abort: LFS error: *onnection *refused*! (glob) (?)
   abort: LFS error: $EADDRNOTAVAIL$! (glob) (?)
+  abort: LFS error: No route to host! (?)
   (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing)
   [255]