Remove operating system specific errors from test-clone.t (bug 1176302) r=gps
authorDan Minor <dminor@mozilla.com>
Wed, 17 Jun 2015 15:27:52 -0400
changeset 2602 e0129d27ef88222b7ea87cc76db4ff8993452314
parent 2601 b99d75db6e83fe1cd8ea59556b1613801679cf9f
child 2603 b9fed90821eb9deecd1cc5adf34c76f4b67a6e82
push id900
push userdminor@mozilla.com
push dateWed, 24 Jun 2015 16:50:37 +0000
treeherderversion-control-tools@e0129d27ef88 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1176302
Remove operating system specific errors from test-clone.t (bug 1176302) r=gps This adds globs for the errno and message for two of the expected errors.
hgext/bundleclone/tests/test-clone.t
--- a/hgext/bundleclone/tests/test-clone.t
+++ b/hgext/bundleclone/tests/test-clone.t
@@ -49,26 +49,26 @@ Empty bundle manifest file falls back to
   getting foo
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
 Manifest file with invalid URL aborts
 
   $ echo 'http://does.not.exist/bundle.hg' >> server/.hg/bundleclone.manifest
   $ hg clone http://localhost:$HGPORT invalid-bundle-url
   downloading bundle http://does.not.exist/bundle.hg
-  abort: error fetching bundle: [Errno 8] nodename nor servname provided, or not known
+  abort: error fetching bundle: [Errno *] * not known (glob)
   (consider contacting the server operator if this error persists)
   [255]
 
 Server is not running aborts
 
   $ echo "http://localhost:$HGPORT1/bundle.hg" > server/.hg/bundleclone.manifest
   $ hg clone http://localhost:$HGPORT server-not-runner
   downloading bundle http://localhost:$HGPORT1/bundle.hg
-  abort: error fetching bundle: [Errno 61] Connection refused
+  abort: error fetching bundle: [Errno *] Connection refused (glob)
   (consider contacting the server operator if this error persists)
   [255]
 
 Server returns 404
 
   $ starthttpserver $HGPORT1
   $ hg clone http://localhost:$HGPORT server-404
   downloading bundle http://localhost:$HGPORT1/bundle.hg