aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-18 10:39:00 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-30 19:08:48 +0300
commit148a3a83a647a21cc102cb01d82cbeeb0940adc8 (patch)
treec646d7eb96fbef15899e1b7b82d972e03f4aa0e9 /mesonbuild/mtest.py
parent84030abd319be051ce7d9ed7488eee9535d4a3cc (diff)
downloadmeson-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/mtest.py')
-rw-r--r--mesonbuild/mtest.py6
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]