Patchwork [stable] tests: invoke run-tests.py in test-hghave using $PYTHON (issue5697)

login
register
mail settings
Submitter Augie Fackler
Date Oct. 4, 2017, 1:04 p.m.
Message ID <bb14dbab4df63306e702.1507122299@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/24457/
State Accepted
Headers show

Comments

Augie Fackler - Oct. 4, 2017, 1:04 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1507122292 14400
#      Wed Oct 04 09:04:52 2017 -0400
# Branch stable
# Node ID bb14dbab4df63306e702b9b26d0e2377bce82bb2
# Parent  c74d6d870073d8d0d773fb197a9429d33affc63a
tests: invoke run-tests.py in test-hghave using $PYTHON (issue5697)

Some platforms (notably pkgsrc on NetBSD) only provide versioned
Python interpreters (eg `python2.7` exists, but `python` does not),
which exposes this error. We want to be running run-tests.py with the
python given in $PYTHON, since that might be `pypy` or `python3`.
Yuya Nishihara - Oct. 5, 2017, 1:03 p.m.
On Wed, 04 Oct 2017 09:04:59 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie@google.com>
> # Date 1507122292 14400
> #      Wed Oct 04 09:04:52 2017 -0400
> # Branch stable
> # Node ID bb14dbab4df63306e702b9b26d0e2377bce82bb2
> # Parent  c74d6d870073d8d0d773fb197a9429d33affc63a
> tests: invoke run-tests.py in test-hghave using $PYTHON (issue5697)

Queued, thanks.

Patch

diff --git a/tests/test-hghave.t b/tests/test-hghave.t
--- a/tests/test-hghave.t
+++ b/tests/test-hghave.t
@@ -22,7 +22,7 @@  Testing hghave extensibility for third p
   > EOF
   $ ( \
   > testrepohgenv; \
-  > $TESTDIR/run-tests.py $HGTEST_RUN_TESTS_PURE test-hghaveaddon.t \
+  > $PYTHON $TESTDIR/run-tests.py $HGTEST_RUN_TESTS_PURE test-hghaveaddon.t \
   > )
   .
   # Ran 1 tests, 0 skipped, 0 failed.