Mercurial > hg
diff tests/test-largefiles-wireproto.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 | 19b4a2087dfc |
children | 305f9c36a0f5 |
line wrap: on
line diff
--- a/tests/test-largefiles-wireproto.t Sun Feb 14 01:06:12 2016 +0900 +++ b/tests/test-largefiles-wireproto.t Tue Mar 15 09:51:54 2016 +0000 @@ -45,7 +45,7 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved largefiles clients still work with vanilla servers - $ hg --config extensions.largefiles=! serve -R r1 -d -p $HGPORT1 --pid-file hg.pid + $ hg serve --config extensions.largefiles=! -R r1 -d -p $HGPORT1 --pid-file hg.pid $ cat hg.pid >> $DAEMON_PIDS $ hg clone http://localhost:$HGPORT1 r3 requesting all changes @@ -149,7 +149,7 @@ $ hg commit -m "m2" Invoking status precommit hook A f2 - $ hg --config extensions.largefiles=! -R ../r6 serve -d -p $HGPORT --pid-file ../hg.pid + $ hg serve --config extensions.largefiles=! -R ../r6 -d -p $HGPORT --pid-file ../hg.pid $ cat ../hg.pid >> $DAEMON_PIDS $ hg push http://localhost:$HGPORT pushing to http://localhost:$HGPORT/