Mercurial > public > mercurial-scm > hg-stable
diff tests/test-http.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 | b74ca9ace65e |
line wrap: on
line diff
--- a/tests/test-http.t Sun Feb 14 01:06:12 2016 +0900 +++ b/tests/test-http.t Tue Mar 15 09:51:54 2016 +0000 @@ -13,7 +13,7 @@ adding foo.d/baR.d.hg/bAR adding foo.d/foo $ hg serve -p $HGPORT -d --pid-file=../hg1.pid -E ../error.log - $ hg --config server.uncompressed=False serve -p $HGPORT1 -d --pid-file=../hg2.pid + $ hg serve --config server.uncompressed=False -p $HGPORT1 -d --pid-file=../hg2.pid Test server address cannot be reused @@ -154,7 +154,7 @@ > def extsetup(): > common.permhooks.insert(0, perform_authentication) > EOT - $ hg --config extensions.x=userpass.py serve -p $HGPORT2 -d --pid-file=pid \ + $ hg serve --config extensions.x=userpass.py -p $HGPORT2 -d --pid-file=pid \ > --config server.preferuncompressed=True \ > --config web.push_ssl=False --config web.allow_push=* -A ../access.log $ cat pid >> $DAEMON_PIDS