aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-09-03 00:12:47 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-04 15:38:12 +0200
commit492afe50a439d70df99d6e3e59572aff55e14c6b (patch)
tree80bb5b3013cacaf2884cc06e167da04b193dafc6 /mesonbuild/mtest.py
parentfa5c2363eb1dd94058aac1a4045d2ab546eed7b9 (diff)
downloadmeson-492afe50a439d70df99d6e3e59572aff55e14c6b.zip
meson-492afe50a439d70df99d6e3e59572aff55e14c6b.tar.gz
meson-492afe50a439d70df99d6e3e59572aff55e14c6b.tar.bz2
environment: use ExternalProgram to find ninja
This allows the NINJA environment variable to support all the Windows special cases, especially allowing an absolute path without extension. Based on a patch by Yonggang Luo. Fixes: #7659 Suggested-by: Nirbheek Chauhan <nirbheek@centricular.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index de82234..b9a1176 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1178,7 +1178,7 @@ def rebuild_all(wd: str) -> bool:
print("Can't find ninja, can't rebuild test.")
return False
- ret = subprocess.run([ninja, '-C', wd]).returncode
+ ret = subprocess.run(ninja + ['-C', wd]).returncode
if ret != 0:
print('Could not rebuild {}'.format(wd))
return False