Patchwork D8459: tests: stabilize test-log.t on Windows

login
register
mail settings
Submitter phabricator
Date April 18, 2020, 1:07 a.m.
Message ID <differential-rev-PHID-DREV-s4vrcjfuczq6kpeuf4ao-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46185/
State Superseded
Headers show

Comments

phabricator - April 18, 2020, 1:07 a.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I think this is because Windows doesn't recognize single quote.  Other ssh based
  clones use this clunky style too.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D8459

AFFECTED FILES
  tests/test-log.t

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-log.t b/tests/test-log.t
--- a/tests/test-log.t
+++ b/tests/test-log.t
@@ -2334,10 +2334,10 @@ 
 is global. So we shouldn't expect the namespace always exists. Using
 ssh:// makes sure a bundle repository is created from scratch. (issue6301)
 
-  $ hg clone -e "'$PYTHON' '$TESTDIR/dummyssh'" \
+  $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" \
   >          -qr0 "ssh://user@dummy/`pwd`/a" a-clone
   $ hg incoming --config extensions.names=names.py -R a-clone \
-  >             -e "'$PYTHON' '$TESTDIR/dummyssh'" -T '{bars}\n' -l1
+  >             -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" -T '{bars}\n' -l1
   comparing with ssh://user@dummy/$TESTTMP/a
   searching for changes