tests: stablize test-serve.t on Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 09 Jul 2020 23:03:34 -0400
changeset 45067 9a062913bab6
parent 45066 5a80915e99ce
child 45068 8cd18aba5e6c
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
tests/test-serve.t
--- 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 ..