# HG changeset patch # User Augie Fackler # Date 1507122292 14400 # 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`. diff -r c74d6d870073 -r bb14dbab4df6 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.