Patchwork D11741: tests: accept alternative privileged port allocation failure

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2021, 1:18 p.m.
Message ID <differential-rev-PHID-DREV-4gcy3vmaikft5qsy2sto-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50066/
State Superseded
Headers show

Comments

phabricator - Nov. 9, 2021, 1:18 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This registers an additional failure message on failed privileged port
  allocation, equally funcionally valid but previously not handled and causing
  the test to fail when run in the NixOS sandbox.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  tests/test-serve.t

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-serve.t b/tests/test-serve.t
--- a/tests/test-serve.t
+++ b/tests/test-serve.t
@@ -57,6 +57,7 @@ 
   $ hgserve -p daytime
   abort: cannot start server at 'localhost:13': Permission denied (?)
   abort: child process failed to start (?)
+  abort: no port number associated with service 'daytime' (?)
   listening at http://localhost/ (bound to $LOCALIP:13) (?)
   % errors
   $ KILLQUIETLY=N