They are no need to generate then in RUNTESTDIR and we don't need a python2
executable. (because not test ever use python2 explicitly).
This is probably still not perfect, but at least it is better.
( )
| hg-reviewers |
They are no need to generate then in RUNTESTDIR and we don't need a python2
executable. (because not test ever use python2 explicitly).
This is probably still not perfect, but at least it is better.
| Automatic diff as part of commit; lint not applicable. |
| Automatic diff as part of commit; unit tests not applicable. |
| Path | Packages | |||
|---|---|---|---|---|
| M | tests/run-tests.py (10 lines) |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | Alphare | ||
| Closed | Alphare | ||
| Closed | Alphare | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | Alphare | ||
| Closed | marmoute | ||
| Abandoned | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | D11067 windows: use abspath in url | |
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | marmoute | ||
| Closed | Alphare | ||
| Closed | Alphare |
| if err.errno != errno.EEXIST: | if err.errno != errno.EEXIST: | ||||
| raise | raise | ||||
| else: | else: | ||||
| # Windows doesn't have `python3.exe`, and MSYS cannot understand the | # Windows doesn't have `python3.exe`, and MSYS cannot understand the | ||||
| # reparse point with that name provided by Microsoft. Create a | # reparse point with that name provided by Microsoft. Create a | ||||
| # simple script on PATH with that name that delegates to the py3 | # simple script on PATH with that name that delegates to the py3 | ||||
| # launcher so the shebang lines work. | # launcher so the shebang lines work. | ||||
| if os.getenv('MSYSTEM'): | if os.getenv('MSYSTEM'): | ||||
| with open(osenvironb[b'RUNTESTDIR'] + b'/python3', 'wb') as f: | py3exe_name = os.path.join(self._custom_bin_dir, b'python3') | ||||
| with open(py3exe_name, 'wb') as f: | |||||
| f.write(b'#!/bin/sh\n') | f.write(b'#!/bin/sh\n') | ||||
| f.write(b'py -3.%d "$@"\n' % sys.version_info[1]) | f.write(b'py -3.%d "$@"\n' % sys.version_info[1]) | ||||
| if os.getenv('MSYSTEM'): | |||||
| with open(osenvironb[b'RUNTESTDIR'] + b'/python2', 'wb') as f: | pyexe_name = os.path.join(self._custom_bin_dir, b'python') | ||||
| with open(pyexe_name, 'wb') as f: | |||||
| f.write(b'#!/bin/sh\n') | f.write(b'#!/bin/sh\n') | ||||
| f.write(b'py -2.%d "$@"\n' % sys.version_info[1]) | f.write(b'py -%d.%d "$@"\n' % sys.version_info[0:2]) | ||||
| exedir, exename = os.path.split(sysexecutable) | exedir, exename = os.path.split(sysexecutable) | ||||
| for pyexename in pyexe_names: | for pyexename in pyexe_names: | ||||
| msg = "# Modifying search path to find %s as %s in '%s'" | msg = "# Modifying search path to find %s as %s in '%s'" | ||||
| msg %= (exename, pyexename, exedir) | msg %= (exename, pyexename, exedir) | ||||
| vlog(msg) | vlog(msg) | ||||
| path = os.environ['PATH'].split(os.pathsep) | path = os.environ['PATH'].split(os.pathsep) | ||||
| while exedir in path: | while exedir in path: | ||||