D1563: tests: use a regular expression to also accept FreeBSD version of error

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Nov 30 16:19:08 UTC 2017


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I suspect we'll have to relax this check even more for other OSes, but
  all we've got are the two working buildbots for the moment.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1563

AFFECTED FILES
  tests/test-ssh.t

CHANGE DETAILS

diff --git a/tests/test-ssh.t b/tests/test-ssh.t
--- a/tests/test-ssh.t
+++ b/tests/test-ssh.t
@@ -583,15 +583,15 @@
 
   $ hg pull ssh://brokenrepository
   pulling from ssh://brokenrepository/
-  remote: ssh: Could not resolve hostname brokenrepository: Name or service not known
+  remote: ssh: Could not resolve hostname brokenrepository: (Name or service|hostname nor servname provided, or) not known (re)
   abort: no suitable response from remote hg!
   [255]
 
 abort with configured error hint when there is a ssh problem when pulling
 
   $ hg pull ssh://brokenrepository --config ui.ssherrorhint="Please see http://company/internalwiki/ssh.html"
   pulling from ssh://brokenrepository/
-  remote: ssh: Could not resolve hostname brokenrepository: Name or service not known
+  remote: ssh: Could not resolve hostname brokenrepository: (Name or service|hostname nor servname provided, or) not known (re)
   abort: no suitable response from remote hg!
   (Please see http://company/internalwiki/ssh.html)
   [255]



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list