Patchwork [2,of,2,evolve-ext] test: explicitly run HGEDITOR shell command with `sh`

login
register
mail settings
Submitter Matt Harbison
Date Jan. 21, 2018, 9:57 p.m.
Message ID <0d16f38a2290784a99cc.1516571850@Envy>
Download mbox | patch
Permalink /patch/27025/
State New
Headers show

Comments

Matt Harbison - Jan. 21, 2018, 9:57 p.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1516571702 18000
#      Sun Jan 21 16:55:02 2018 -0500
# Node ID 0d16f38a2290784a99cc21eaf676b8a983144c13
# Parent  0fde72742b31666e742823cbb5fa2540a068fd89
test: explicitly run HGEDITOR shell command with `sh`

Otherwise Windows pops up the "What program do you want to use to open this?"
dialog.

Patch

diff --git a/tests/test-prev-next.t b/tests/test-prev-next.t
--- a/tests/test-prev-next.t
+++ b/tests/test-prev-next.t
@@ -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