comparison 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
comparison
equal deleted inserted replaced
28548:b7a31068cc80 28549:e01bd7385f4f
62 new changeset 3:a323a0c43ec4 merges remote changes with local 62 new changeset 3:a323a0c43ec4 merges remote changes with local
63 $ ls c 63 $ ls c
64 a 64 a
65 b 65 b
66 c 66 c
67 $ hg --cwd a serve -a localhost -p $HGPORT -d --pid-file=hg.pid 67 $ hg serve --cwd a -a localhost -p $HGPORT -d --pid-file=hg.pid
68 $ cat a/hg.pid >> "$DAEMON_PIDS" 68 $ cat a/hg.pid >> "$DAEMON_PIDS"
69 69
70 fetch over http, no auth 70 fetch over http, no auth
71 (this also tests that editor is invoked if '--edit' is specified) 71 (this also tests that editor is invoked if '--edit' is specified)
72 72