# HG changeset patch # User Boris Feld # Date 1544433668 -3600 # Node ID 8695fbe17f7cbe5187b72b48f01984ce8cada594 # Parent 7cda0cacbbf653c58a60b77828526122836b5ad7 tests: update network related errors for Debian 9 We have a CI job that runs the Mercurial tests in parallel. Some of the network related failures seems to be different on the environment. Oddly, those failures happens only when running the tests in parallel, not when running the test file only. I have no idea how to get the windows formatted message for the error, if someone could give me an hand, I will update this changeset with the value. Differential Revision: https://phab.mercurial-scm.org/D5401 diff -r 7cda0cacbbf6 -r 8695fbe17f7c tests/common-pattern.py --- a/tests/common-pattern.py Sun Nov 04 16:57:05 2018 +0900 +++ b/tests/common-pattern.py Mon Dec 10 10:21:08 2018 +0100 @@ -143,6 +143,12 @@ br'Only one usage of each socket address' br' \(protocol/network address/port\) is normally permitted', ), + br'$EADDRNOTAVAIL$': ( + # strerror() + br'Cannot assign requested address', + + # FormatMessage(WSAEADDRNOTAVAIL) + ) } for replace, msgs in _errors.items(): diff -r 7cda0cacbbf6 -r 8695fbe17f7c tests/test-http-bad-server.t --- a/tests/test-http-bad-server.t Sun Nov 04 16:57:05 2018 +0900 +++ b/tests/test-http-bad-server.t Mon Dec 10 10:21:08 2018 +0100 @@ -36,7 +36,8 @@ $ cat hg.pid > $DAEMON_PIDS $ hg clone http://localhost:$HGPORT/ clone - abort: error: $ECONNRESET$ + abort: error: $ECONNRESET$ (?) + abort: error: $EADDRNOTAVAIL$ (?) [255] (The server exits on its own, but there is a race between that and starting a new server. diff -r 7cda0cacbbf6 -r 8695fbe17f7c tests/test-http-proxy.t --- a/tests/test-http-proxy.t Sun Nov 04 16:57:05 2018 +0900 +++ b/tests/test-http-proxy.t Mon Dec 10 10:21:08 2018 +0100 @@ -90,7 +90,8 @@ 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|Cannot assign requested address) (re) + abort: error: (Connection refused|Protocol not supported|.* actively refused it) (re) (?) + abort: error: $EADDRNOTAVAIL$ (?) [255] do not use the proxy if it is in the no list diff -r 7cda0cacbbf6 -r 8695fbe17f7c tests/test-lfs-serve-access.t --- a/tests/test-lfs-serve-access.t Sun Nov 04 16:57:05 2018 +0900 +++ b/tests/test-lfs-serve-access.t Mon Dec 10 10:21:08 2018 +0100 @@ -82,7 +82,8 @@ [255] $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing - abort: LFS error: *onnection *refused*! (glob) + abort: LFS error: *onnection *refused*! (glob) (?) + abort: LFS error: $EADDRNOTAVAIL$! (glob) (?) (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing) [255]