Mercurial > public > mercurial-scm > hg-stable
diff tests/test-fetch.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 | 701df761aa94 |
children | 9dcc9ed26d33 |
line wrap: on
line diff
--- a/tests/test-fetch.t Sun Feb 14 01:06:12 2016 +0900 +++ b/tests/test-fetch.t Tue Mar 15 09:51:54 2016 +0000 @@ -64,7 +64,7 @@ a b c - $ hg --cwd a serve -a localhost -p $HGPORT -d --pid-file=hg.pid + $ hg serve --cwd a -a localhost -p $HGPORT -d --pid-file=hg.pid $ cat a/hg.pid >> "$DAEMON_PIDS" fetch over http, no auth