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`.
--- 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.