Mercurial > public > mercurial-scm > hg-stable
diff tests/test-patchbomb.t @ 16901:5b89700cce30
tests: consistently use a HGEDITOR pattern that works with msys on windows
Removing the need for an executable sh script that can be run from a native
windows application enables some tests for running on windows.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 10 Jun 2012 14:41:14 +0200 |
parents | d6a4cfefafb3 |
children | f2719b387380 |
line wrap: on
line diff
--- a/tests/test-patchbomb.t Sun Jun 10 14:14:52 2012 +0200 +++ b/tests/test-patchbomb.t Sun Jun 10 14:41:14 2012 +0200 @@ -1,5 +1,3 @@ - $ "$TESTDIR/hghave" system-sh || exit 80 - $ echo "[extensions]" >> $HGRCPATH $ echo "patchbomb=" >> $HGRCPATH @@ -141,12 +139,10 @@ .hg/last-email.txt - $ cat > editor << '__EOF__' - > #!/bin/sh + $ cat > editor.sh << '__EOF__' > echo "a precious introductory message" > "$1" > __EOF__ - $ chmod +x editor - $ HGEDITOR="'`pwd`'"/editor hg email -n -t foo -s test -r 0:tip > /dev/null + $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null $ cat .hg/last-email.txt a precious introductory message