diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-11-11 01:53:23 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-11-20 23:08:17 +0200 |
commit | 5d51bc79c7555e681a0c638da9528458257744ae (patch) | |
tree | 9d8e24be05870144a8763a094a8b273fd657c262 /run_tests.py | |
parent | b3dfb80c15cae24c66d07425bb7a327528438a55 (diff) | |
download | meson-5d51bc79c7555e681a0c638da9528458257744ae.zip meson-5d51bc79c7555e681a0c638da9528458257744ae.tar.gz meson-5d51bc79c7555e681a0c638da9528458257744ae.tar.bz2 |
Replaced sys.executable use with the mesonlib equivalent.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/run_tests.py b/run_tests.py index 4ac458c..b287a1a 100755 --- a/run_tests.py +++ b/run_tests.py @@ -223,11 +223,12 @@ if __name__ == '__main__': 'coverage.process_startup()\n') env['COVERAGE_PROCESS_START'] = '.coveragerc' env['PYTHONPATH'] = os.pathsep.join([td] + env.get('PYTHONPATH', [])) - returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v'], env=env) + returncode += subprocess.call(mesonlib.python_command + ['run_unittests.py', '-v'], env=env) # Ubuntu packages do not have a binary without -6 suffix. if should_run_linux_cross_tests(): print(mlog.bold('Running cross compilation tests.').get_text(mlog.colorize_console)) print() - returncode += subprocess.call([sys.executable, 'run_cross_test.py', 'cross/ubuntu-armhf.txt'], env=env) - returncode += subprocess.call([sys.executable, 'run_project_tests.py'] + sys.argv[1:], env=env) + returncode += subprocess.call(mesonlib.python_command + ['run_cross_test.py', 'cross/ubuntu-armhf.txt'], + env=env) + returncode += subprocess.call(mesonlib.python_command + ['run_project_tests.py'] + sys.argv[1:], env=env) sys.exit(returncode) |