test: explicitly run HGEDITOR shell command with `sh` stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 21 Jan 2018 16:55:02 -0500
branchstable
changeset 3486 bee9fee8f36b
parent 3485 ece7cfdff335
child 3488 1baf32675ec6
child 3507 c0b6a95b94b9
test: explicitly run HGEDITOR shell command with `sh` Otherwise Windows pops up the "What program do you want to use to open this?" dialog.
tests/test-prev-next.t
--- a/tests/test-prev-next.t	Sun Jan 21 16:46:31 2018 -0500
+++ b/tests/test-prev-next.t	Sun Jan 21 16:55:02 2018 -0500
@@ -243,7 +243,7 @@
 
   $ hg init repo
   $ cd repo
-  $ HGEDITOR=${TESTDIR}/fake-editor.sh
+  $ HGEDITOR="sh ${TESTDIR}/fake-editor.sh"
   $ echo hi > foo
   $ hg ci -Am 'one'
   adding foo