tests: invoke run-tests.py in test-hghave using $PYTHON (issue5697) stable
authorAugie Fackler <augie@google.com>
Wed, 04 Oct 2017 09:04:52 -0400
branchstable
changeset 34481 bb14dbab4df6
parent 34356 c74d6d870073
child 34909 a52e5604d864
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`.
tests/test-hghave.t
--- a/tests/test-hghave.t	Sun Oct 01 05:28:54 2017 -0400
+++ b/tests/test-hghave.t	Wed Oct 04 09:04:52 2017 -0400
@@ -22,7 +22,7 @@
   > 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.