Mercurial > public > mercurial-scm > hg-stable
diff tests/test-bundle2-exchange.t @ 33335:72f051f9a7d8
tests: quote $PYTHON for Windows
When unquoted, MSYS sees the colon between the drive letter and path as a Unix
path separator and unhelpfully splits on it, feeding only the drive letter as
the command. Much chaos ensues.
I vaguely remember trying to get the test runner to use /letter/path/to/exe
syntax the last time this happened, without success. I doubt a check-code rule
would work, since sometimes it is quoted, and sometimes the quotes are escaped.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 07 Jul 2017 01:05:20 -0400 |
parents | 2428e8ec0793 |
children | 6c1a9fd8361b |
line wrap: on
line diff
--- a/tests/test-bundle2-exchange.t Mon Jun 26 15:28:28 2017 -0700 +++ b/tests/test-bundle2-exchange.t Fri Jul 07 01:05:20 2017 -0400 @@ -18,7 +18,7 @@ > evolution=createmarkers,exchange > bundle2-output-capture=True > [ui] - > ssh=$PYTHON "$TESTDIR/dummyssh" + > ssh="$PYTHON" "$TESTDIR/dummyssh" > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline} > [web] > push_ssl = false @@ -909,7 +909,7 @@ $ cp $TESTTMP/hgrc.orig $HGRCPATH $ cat >> $HGRCPATH <<EOF > [ui] - > ssh=$PYTHON "$TESTDIR/dummyssh" + > ssh="$PYTHON" "$TESTDIR/dummyssh" > EOF $ cat >> $TESTTMP/locktester.py <<EOF