test-amend: fix HGEDITOR shell script to run on Windows
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 13 Jul 2017 22:57:11 -0400
changeset 33431 fd6eb444f2e1
parent 33430 21299e1fb446
child 33432 fbfecd1dbfb5
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.
tests/test-amend.t
--- 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