aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.py
diff options
context:
space:
mode:
authorJukka Laurila <jlaurila@google.com>2018-03-07 22:25:05 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-03-09 00:26:14 +0200
commit58ce5fe62da876f9c7a42c72fefc3d2bf6afb2f3 (patch)
treee190bc93ee8df85e8de6aff2f05aef65c98f789c /mesonbuild/backend/xcodebackend.py
parent1ea96b710b646bf45b614b397d6e87d07427e38a (diff)
downloadmeson-58ce5fe62da876f9c7a42c72fefc3d2bf6afb2f3.zip
meson-58ce5fe62da876f9c7a42c72fefc3d2bf6afb2f3.tar.gz
meson-58ce5fe62da876f9c7a42c72fefc3d2bf6afb2f3.tar.bz2
Fix xcode backend to run "meson test" instead of the nonexistent meson_test.py.
Diffstat (limited to 'mesonbuild/backend/xcodebackend.py')
-rw-r--r--mesonbuild/backend/xcodebackend.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index fae5889..e2204fe 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -565,9 +565,7 @@ class XCodeBackend(backends.Backend):
self.write_line(');')
self.write_line('runOnlyForDeploymentPostprocessing = 0;')
self.write_line('shellPath = /bin/sh;')
- script_root = self.environment.get_script_dir()
- test_script = os.path.join(script_root, 'meson_test.py')
- cmd = mesonlib.python_command + [test_script, test_data, '--wd', self.environment.get_build_dir()]
+ cmd = mesonlib.meson_command + ['test', test_data, '-C', self.environment.get_build_dir()]
cmdstr = ' '.join(["'%s'" % i for i in cmd])
self.write_line('shellScript = "%s";' % cmdstr)
self.write_line('showEnvVarsInLog = 0;')