Mercurial > hg-stable
diff tests/test-ssh.t @ 46750:e96a0a53de20
tests: Adapt expected output for minor differences with rhg
Differential Revision: https://phab.mercurial-scm.org/D10135
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 05 Mar 2021 11:39:21 +0100 |
parents | 7015b0232c5e |
children | 84a93fa7ecfd |
line wrap: on
line diff
--- a/tests/test-ssh.t Fri Mar 05 11:21:15 2021 +0100 +++ b/tests/test-ssh.t Fri Mar 05 11:39:21 2021 +0100 @@ -390,6 +390,7 @@ abort: destination 'a repo' is not empty [10] +#if no-rhg Make sure hg is really paranoid in serve --stdio mode. It used to be possible to get a debugger REPL by specifying a repo named --debugger. $ hg -R --debugger serve --stdio @@ -402,6 +403,27 @@ $ hg -R narf serv --stdio abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] [255] +#else +rhg aborts early on -R without a repository at that path + $ hg -R --debugger serve --stdio + abort: potentially unsafe serve --stdio invocation: ['-R', '--debugger', 'serve', '--stdio'] (missing-correct-output !) + abort: repository --debugger not found (known-bad-output !) + [255] + $ hg -R --config=ui.debugger=yes serve --stdio + abort: potentially unsafe serve --stdio invocation: ['-R', '--config=ui.debugger=yes', 'serve', '--stdio'] (missing-correct-output !) + abort: repository --config=ui.debugger=yes not found (known-bad-output !) + [255] + $ hg -R narf serv --stdio + abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] (missing-correct-output !) + abort: repository narf not found (known-bad-output !) + [255] +If the repo does exist, rhg finds an unsupported command and falls back to Python +which still does the right thing + $ hg init narf + $ hg -R narf serv --stdio + abort: potentially unsafe serve --stdio invocation: ['-R', 'narf', 'serv', '--stdio'] + [255] +#endif Test hg-ssh using a helper script that will restore PYTHONPATH (which might have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right