changeset 33431:fd6eb444f2e1

test-amend: fix HGEDITOR shell script to run on Windows Windows doesn't know how to launch *.sh directly. This workaround is used in several other tests.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 13 Jul 2017 22:57:11 -0400
parents 21299e1fb446
children fbfecd1dbfb5
files tests/test-amend.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-amend.t	Thu Jul 13 22:47:35 2017 -0400
+++ b/tests/test-amend.t	Thu Jul 13 22:57:11 2017 -0400
@@ -118,10 +118,10 @@
   > EOF
   $ chmod +x $TESTTMP/prefix.sh
 
-  $ HGEDITOR="$TESTTMP/prefix.sh" hg amend --edit -q
+  $ HGEDITOR="sh $TESTTMP/prefix.sh" hg amend --edit -q
   $ hg log -r . -T '{node|short} {desc}\n'
   298f085230c3 EDITED: NEWMESSAGE
-  $ HGEDITOR="$TESTTMP/prefix.sh" hg amend -e -m MSG -q
+  $ HGEDITOR="sh $TESTTMP/prefix.sh" hg amend -e -m MSG -q
   $ hg log -r . -T '{node|short} {desc}\n'
   974f07f28537 EDITED: MSG