changeset 44859:15e26cc0e2c6

sshpeer: add test showing that -q silences remote errors Differential Revision: https://phab.mercurial-scm.org/D8583
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Mon, 25 May 2020 20:02:15 -0400
parents 5d8ae9248a70
children 5d77f571a563
files tests/test-ssh.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-ssh.t	Tue May 26 07:03:11 2020 -0400
+++ b/tests/test-ssh.t	Mon May 25 20:02:15 2020 -0400
@@ -46,6 +46,9 @@
   remote: abort: repository nonexistent not found!
   abort: no suitable response from remote hg!
   [255]
+  $ hg clone -q -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local
+  abort: no suitable response from remote hg!
+  [255]
 
 non-existent absolute path
 
@@ -553,6 +556,7 @@
 
   $ cat dummylog
   Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
+  Got arguments 1:user@dummy 2:hg -R nonexistent serve --stdio
   Got arguments 1:user@dummy 2:hg -R $TESTTMP/nonexistent serve --stdio
   Got arguments 1:user@dummy 2:hg -R remote serve --stdio
   Got arguments 1:user@dummy 2:hg -R local-stream serve --stdio (no-reposimplestore !)