Mercurial > hg
changeset 45067:9a062913bab6
tests: stablize test-serve.t on Windows
I forget the reason that the subprocess on Windows doesn't print this, but all
other instances of this are similarly conditionalized, so I didn't think too
hard about it.
Also, the server needs to be killed so it doesn't prevent the next run from
working, especially since the port isn't randomized.
Differential Revision: https://phab.mercurial-scm.org/D8720
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 09 Jul 2020 23:03:34 -0400 |
parents | 5a80915e99ce |
children | 8cd18aba5e6c |
files | tests/test-serve.t |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-serve.t Mon Jul 06 21:08:15 2020 +0200 +++ b/tests/test-serve.t Thu Jul 09 23:03:34 2020 -0400 @@ -103,7 +103,10 @@ issue6362: Previously, this crashed on Python 3 - $ hg serve -a 0.0.0.0 -d - listening at http://*:$HGPORT1/ (bound to *:$HGPORT1) (glob) + $ hg serve -a 0.0.0.0 -d --pid-file=hg.pid + listening at http://*:$HGPORT1/ (bound to *:$HGPORT1) (glob) (?) + + $ cat hg.pid > "$DAEMON_PIDS" + $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS $ cd ..