Patchwork D2865: tests: clean up two wayward `python` invocations

login
register
mail settings
Submitter phabricator
Date March 15, 2018, 12:53 p.m.
Message ID <4d6e196b50c62fdb44a656fad40ee0b0@localhost.localdomain>
Download mbox | patch
Permalink /patch/29531/
State Not Applicable
Headers show

Comments

phabricator - March 15, 2018, 12:53 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3f3418a4a774: tests: clean up two wayward `python` invocations (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2865?vs=7043&id=7060

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

AFFECTED FILES
  tests/test-narrow-clone-non-narrow-server.t
  tests/test-sparse-clone.t

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-sparse-clone.t b/tests/test-sparse-clone.t
--- a/tests/test-sparse-clone.t
+++ b/tests/test-sparse-clone.t
@@ -2,7 +2,7 @@ 
 
   $ cat >> $HGRCPATH << EOF
   > [ui]
-  > ssh = python "$RUNTESTDIR/dummyssh"
+  > ssh = $PYTHON "$RUNTESTDIR/dummyssh"
   > username = nobody <no.reply@fb.com>
   > [extensions]
   > sparse=
diff --git a/tests/test-narrow-clone-non-narrow-server.t b/tests/test-narrow-clone-non-narrow-server.t
--- a/tests/test-narrow-clone-non-narrow-server.t
+++ b/tests/test-narrow-clone-non-narrow-server.t
@@ -19,7 +19,7 @@ 
 
 Verify that narrow is advertised in the bundle2 capabilities:
   $ echo hello | hg -R . serve --stdio | \
-  >   python -c "import sys, urllib; print urllib.unquote_plus(list(sys.stdin)[1])" | grep narrow
+  >   $PYTHON -c "import sys, urllib; print urllib.unquote_plus(list(sys.stdin)[1])" | grep narrow
   narrow=v0
 
   $ cd ..