diff tests/test-http-proxy.t @ 28549:e01bd7385f4f

tests: reorder hg serve commands chg currently does not support hg serve -d. It has a quick path testing if the command is hg serve -d and fallbacks to hg if so. But the test only works if "serve" is the first argument since the test wants to avoid false positives (for example, "-r serve" is different). This patch reorders "hg server" commands in tests, making them chg friendly.
author Jun Wu <quark@fb.com>
date Tue, 15 Mar 2016 09:51:54 +0000
parents 29cfc474c5fd
children 9dc27a334fb1
line wrap: on
line diff
--- a/tests/test-http-proxy.t	Sun Feb 14 01:06:12 2016 +0900
+++ b/tests/test-http-proxy.t	Tue Mar 15 09:51:54 2016 +0000
@@ -11,7 +11,7 @@
   $ echo a > a
   $ hg ci -Ama -d '1123456789 0'
   adding a
-  $ hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=hg.pid
+  $ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid
   $ cat hg.pid >> $DAEMON_PIDS
   $ cd ..
   $ tinyproxy.py $HGPORT1 localhost >proxy.log 2>&1 </dev/null &