[PATCH] tests: update regex check for fetch error in test-clonebundles.t
Denis Laxalde
denis at laxalde.org
Thu Jun 22 11:20:51 UTC 2017
# HG changeset patch
# User Denis Laxalde <denis at laxalde.org>
# Date 1498122989 -7200
# Thu Jun 22 11:16:29 2017 +0200
# Node ID c5ead6e33b3fcc82f860c6b241b451ff025ec3a0
# Parent 41b081ac2145d88ba1fe494630ce69652f016078
tests: update regex check for fetch error in test-clonebundles.t
On some systems, e.g. Docker container, the actual error may be:
error fetching bundle: [Errno 99] Cannot assign requested address
Update the regex to handle this case.
diff --git a/tests/test-clonebundles.t b/tests/test-clonebundles.t
--- a/tests/test-clonebundles.t
+++ b/tests/test-clonebundles.t
@@ -62,7 +62,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|Cannot assign requested address) (re)
+ error fetching bundle: (.* refused.*|Protocol not supported|(.* )?Cannot assign requested address) (re)
abort: error applying bundle
(if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false")
[255]
More information about the Mercurial-devel
mailing list