aboutsummaryrefslogtreecommitdiff
path: root/mesontest.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesontest.py')
-rwxr-xr-xmesontest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesontest.py b/mesontest.py
index b59d1ed..101ce5f 100755
--- a/mesontest.py
+++ b/mesontest.py
@@ -364,7 +364,7 @@ TIMEOUT: %4d
return False
def test_suitable(self, test):
- return (len(self.options.include_suites) == 0 or TestHarness.test_in_suites(test, self.options.include_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 load_suites(self):
@@ -610,7 +610,7 @@ def run(args):
if options.list:
list_tests(th)
return 0
- if len(options.args) == 0:
+ if not options.args:
return th.doit()
return th.run_special()