aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-11 01:53:23 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-11-20 23:08:17 +0200
commit5d51bc79c7555e681a0c638da9528458257744ae (patch)
tree9d8e24be05870144a8763a094a8b273fd657c262 /run_tests.py
parentb3dfb80c15cae24c66d07425bb7a327528438a55 (diff)
downloadmeson-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-xrun_tests.py7
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)