From patchwork Thu Jun 22 11:20:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: update regex check for fetch error in test-clonebundles.t From: Denis Laxalde X-Patchwork-Id: 21608 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Thu, 22 Jun 2017 13:20:51 +0200 # HG changeset patch # User Denis Laxalde # 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]