Mercurial > hg
comparison tests/run-tests.py @ 18049:07ad75b22910
run-tests: check for the correct python when starting
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Mon, 10 Dec 2012 12:09:02 -0800 |
parents | 9b7288fc7bf2 |
children | 5522a7951bd7 |
comparison
equal
deleted
inserted
replaced
18048:9b7288fc7bf2 | 18049:07ad75b22910 |
---|---|
92 PYTHON = sys.executable.replace('\\', '/') | 92 PYTHON = sys.executable.replace('\\', '/') |
93 IMPL_PATH = 'PYTHONPATH' | 93 IMPL_PATH = 'PYTHONPATH' |
94 if 'java' in sys.platform: | 94 if 'java' in sys.platform: |
95 IMPL_PATH = 'JYTHONPATH' | 95 IMPL_PATH = 'JYTHONPATH' |
96 | 96 |
97 requiredtools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed"] | 97 requiredtools = [os.path.basename(sys.executable), "diff", "grep", "unzip", |
98 "gunzip", "bunzip2", "sed"] | |
98 | 99 |
99 defaults = { | 100 defaults = { |
100 'jobs': ('HGTEST_JOBS', 1), | 101 'jobs': ('HGTEST_JOBS', 1), |
101 'timeout': ('HGTEST_TIMEOUT', 180), | 102 'timeout': ('HGTEST_TIMEOUT', 180), |
102 'port': ('HGTEST_PORT', 20059), | 103 'port': ('HGTEST_PORT', 20059), |