diff options
author | Stian Selnes <stian@pexip.com> | 2018-11-12 10:33:49 +0100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-11-12 16:23:59 +0530 |
commit | 0821462ce382541e120d8d6cfc1a3224a492b275 (patch) | |
tree | 67ca584e5f619ab6beabdc67c930f83ceb7df658 /mesonbuild/mtest.py | |
parent | 50b2ef7354b503ae62abd504cdce938c390b358f (diff) | |
download | meson-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.py | 2 |
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: |