Mercurial > hg
comparison tests/test-run-tests.t @ 47500:23f5ed6dbcb1
run-tests: stop writing a `python3` symlink pointing to python2
Having `python3` actually pointing to `python2` is bad. So we stop doing so.
In addition we need to re-introduce a `python` executable since some of the
script really need to be able to say "current python" in their shbang. For
example, `hghave` is one of such script.
The faulty changes where introduced by c102b704edb5.
Differential Revision: https://phab.mercurial-scm.org/D10943
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Jul 2021 23:09:44 +0200 |
parents | dff19fe2973c |
children | 57bdecf4322c |
comparison
equal
deleted
inserted
replaced
47499:9b1710c50230 | 47500:23f5ed6dbcb1 |
---|---|
2034 Failed test-conditional-matching.t#bar: output changed | 2034 Failed test-conditional-matching.t#bar: output changed |
2035 Failed test-conditional-matching.t#foo: output changed | 2035 Failed test-conditional-matching.t#foo: output changed |
2036 # Ran 2 tests, 0 skipped, 2 failed. | 2036 # Ran 2 tests, 0 skipped, 2 failed. |
2037 python hash seed: * (glob) | 2037 python hash seed: * (glob) |
2038 [1] | 2038 [1] |
2039 | |
2040 Test that a proper "python" has been set up | |
2041 =========================================== | |
2042 | |
2043 (with a small check-code work around) | |
2044 $ printf "#!/usr/bi" > test-py3.tmp | |
2045 $ printf "n/en" >> test-py3.tmp | |
2046 $ cat << EOF >> test-py3.tmp | |
2047 > v python3 | |
2048 > import sys | |
2049 > print('.'.join(str(x) for x in sys.version_info)) | |
2050 > EOF | |
2051 $ mv test-py3.tmp test-py3.py | |
2052 $ chmod +x test-py3.py | |
2053 | |
2054 (with a small check-code work around) | |
2055 $ printf "#!/usr/bi" > test-py.tmp | |
2056 $ printf "n/en" >> test-py.tmp | |
2057 $ cat << EOF >> test-py.tmp | |
2058 > v python | |
2059 > import sys | |
2060 > print('.'.join(str(x) for x in sys.version_info)) | |
2061 > EOF | |
2062 $ mv test-py.tmp test-py.py | |
2063 $ chmod +x test-py.py | |
2064 | |
2065 $ ./test-py3.py | |
2066 3.* (glob) | |
2067 $ ./test-py.py | |
2068 2.* (glob) (no-py3 !) | |
2069 3.* (glob) (py3 !) |