diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-07-18 10:39:00 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-07-30 19:08:48 +0300 |
commit | 148a3a83a647a21cc102cb01d82cbeeb0940adc8 (patch) | |
tree | c646d7eb96fbef15899e1b7b82d972e03f4aa0e9 /mesonbuild | |
parent | 84030abd319be051ce7d9ed7488eee9535d4a3cc (diff) | |
download | meson-148a3a83a647a21cc102cb01d82cbeeb0940adc8.zip meson-148a3a83a647a21cc102cb01d82cbeeb0940adc8.tar.gz meson-148a3a83a647a21cc102cb01d82cbeeb0940adc8.tar.bz2 |
DOC: meson test multiple --suite specifications [skip ci]
docs:wrap < 80 col
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/mtest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 1d194c2..dc5c9d1 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -834,8 +834,9 @@ Timeout: %4d return False def test_suitable(self, test: 'TestSerialisation') -> bool: - return (not self.options.include_suites or TestHarness.test_in_suites(test, self.options.include_suites)) \ - and not TestHarness.test_in_suites(test, self.options.exclude_suites) + return ((not self.options.include_suites or + TestHarness.test_in_suites(test, self.options.include_suites)) and not + TestHarness.test_in_suites(test, self.options.exclude_suites)) def get_tests(self) -> typing.List['TestSerialisation']: if not self.tests: @@ -850,6 +851,7 @@ Timeout: %4d else: tests = self.tests + # allow specifying test names like "meson test foo1 foo2", where test('foo1', ...) if self.options.args: tests = [t for t in tests if t.name in self.options.args] |