diff options
| author | Sam James <sam@gentoo.org> | 2025-03-27 02:08:31 +0000 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-02 23:50:38 +0300 |
| commit | 6f426e02d1776f77eb3b540dd470613e54a8c785 (patch) | |
| tree | 63d8e54a5aa808ee8c88e1a081f9421258b67a43 /mesonbuild | |
| parent | 80116498d076b840162d74541564a29c4a37335f (diff) | |
| download | meson-6f426e02d1776f77eb3b540dd470613e54a8c785.tar.gz | |
mtest: refactor get_wrapper slightly
--wrapper and --gdb are mutually exclusive per run(), so make get_wrapper
reflect this (which would've saved me some time earlier with trying to
make the two work together for something else, when it turns out that's
impossible).
As suggested by Eli.
Diffstat (limited to 'mesonbuild')
| -rw-r--r-- | mesonbuild/mtest.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 541f8a317..4a907d89e 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -2064,15 +2064,16 @@ class TestHarness: @staticmethod def get_wrapper(options: argparse.Namespace) -> T.List[str]: - wrap: T.List[str] = [] if options.gdb: wrap = [options.gdb_path, '--quiet'] if options.repeat > 1: wrap += ['-ex', 'run', '-ex', 'quit'] # Signal the end of arguments to gdb wrap += ['--args'] - if options.wrapper: - wrap += options.wrapper + elif options.wrapper: + wrap = options.wrapper + else: + wrap = [] return wrap def get_pretty_suite(self, test: TestSerialisation) -> str: |
