aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting/core')
-rw-r--r--xtesting/core/mts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtesting/core/mts.py b/xtesting/core/mts.py
index a7ec9d23..ec6766d2 100644
--- a/xtesting/core/mts.py
+++ b/xtesting/core/mts.py
@@ -149,7 +149,7 @@ class MTSLauncher(testcase.TestCase):
"""Make sure that all required MTS test cases exist
in the XML test file.
"""
- if len(enabled_testcases) > 0:
+ if enabled_testcases:
# Verify if the MTS test case exists in the whole list of test
# cases declared in the test XML file
for enabled_testcase in enabled_testcases:
@@ -189,7 +189,7 @@ class MTSLauncher(testcase.TestCase):
enabled_testcases = kwargs[
"testcases"] if "testcases" in kwargs else []
enabled_testcases_str = ''
- if len(enabled_testcases) > 0:
+ if enabled_testcases:
enabled_testcases_str = ' '.join(enabled_testcases)
check_ok = self.check_enabled_mts_test_cases(enabled_testcases)
if not check_ok: