test-ssh: stabilize for Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 16 Dec 2017 18:58:02 -0500
changeset 35484 1853c8677160
parent 35483 817a3d20dd01
child 35485 1721ce06100a
test-ssh: stabilize for Windows Previously, this complained: remote: '.' is not recognized as an internal or external command, remote: operable program or batch file. Making this a python script apparently revealed some races[1]. Thanks to Yuya for suggesting this. [1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-December/109094.html
tests/test-ssh.t
--- a/tests/test-ssh.t	Fri Dec 22 21:19:29 2017 +0900
+++ b/tests/test-ssh.t	Sat Dec 16 18:58:02 2017 -0500
@@ -603,12 +603,12 @@
   > echo \$VAR >&2
   > EOF
   $ chmod +x dumpenv
-  $ hg pull ssh://something --config ui.ssh="./dumpenv"
+  $ hg pull ssh://something --config ui.ssh="sh dumpenv"
   pulling from ssh://something/
   remote: 
   abort: no suitable response from remote hg!
   [255]
-  $ hg pull ssh://something --config ui.ssh="./dumpenv" --config sshenv.VAR=17
+  $ hg pull ssh://something --config ui.ssh="sh dumpenv" --config sshenv.VAR=17
   pulling from ssh://something/
   remote: 17
   abort: no suitable response from remote hg!