Patchwork D9504: tests: use the right python when running dummyssh for narrow

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2020, 10:19 p.m.
Message ID <differential-rev-PHID-DREV-a2mjuve4v7uyctjwk72o-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47787/
State Superseded
Headers show

Comments

phabricator - Dec. 2, 2020, 10:19 p.m.
marmoute created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  some plateform no longer have a `python` executable.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/narrow-library.sh
  tests/test-narrow-widen-no-ellipsis.t

CHANGE DETAILS




To: marmoute, durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-narrow-widen-no-ellipsis.t b/tests/test-narrow-widen-no-ellipsis.t
--- a/tests/test-narrow-widen-no-ellipsis.t
+++ b/tests/test-narrow-widen-no-ellipsis.t
@@ -107,7 +107,7 @@ 
 
   $ hg tracked --addinclude widest/f --debug
   comparing with ssh://user@dummy/master
-  running python "*dummyssh" *user@dummy* *hg -R master serve --stdio* (glob)
+  running * "*dummyssh" *user@dummy* *hg -R master serve --stdio* (glob)
   sending hello command
   sending between command
   remote: * (glob)
diff --git a/tests/narrow-library.sh b/tests/narrow-library.sh
--- a/tests/narrow-library.sh
+++ b/tests/narrow-library.sh
@@ -2,7 +2,7 @@ 
 [extensions]
 narrow=
 [ui]
-ssh=python "$RUNTESTDIR/dummyssh"
+ssh=$PYTHON "$RUNTESTDIR/dummyssh"
 [experimental]
 changegroup3 = True
 EOF