aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorStian Selnes <stian@pexip.com>2018-11-12 10:33:49 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-11-12 16:23:59 +0530
commit0821462ce382541e120d8d6cfc1a3224a492b275 (patch)
tree67ca584e5f619ab6beabdc67c930f83ceb7df658 /mesonbuild/mtest.py
parent50b2ef7354b503ae62abd504cdce938c390b358f (diff)
downloadmeson-0821462ce382541e120d8d6cfc1a3224a492b275.zip
meson-0821462ce382541e120d8d6cfc1a3224a492b275.tar.gz
meson-0821462ce382541e120d8d6cfc1a3224a492b275.tar.bz2
Add kwarg is_default to add_test_setup()
is_default may be used to set the name of the test setup that will be used by default whenever the option --setup is not given. Fixes #4430
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 883e556..a5a3626 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -450,6 +450,8 @@ class TestHarness:
def get_test_runner(self, test):
options = deepcopy(self.options)
+ if not options.setup:
+ options.setup = self.build_data.test_setup_default_name
if options.setup:
env = self.merge_suite_options(options, test)
else: