Index: tools/run-tests.py |
diff --git a/tools/run-tests.py b/tools/run-tests.py |
index 32b3f49a9fecc5afe98469dad3dc564910464662..79095f6359187905ddb80e3c2bc6b83469e4bb1c 100755 |
--- a/tools/run-tests.py |
+++ b/tools/run-tests.py |
@@ -293,14 +293,14 @@ def Main(): |
suite_paths = utils.GetSuitePaths(join(workspace, "test")) |
if len(args) == 0: |
- suite_paths = [ s for s in suite_paths if s in DEFAULT_TESTS ] |
+ suite_paths = [ s for s in DEFAULT_TESTS if s in suite_paths ] |
else: |
args_suites = set() |
for arg in args: |
suite = arg.split(os.path.sep)[0] |
if not suite in args_suites: |
args_suites.add(suite) |
- suite_paths = [ s for s in suite_paths if s in args_suites ] |
+ suite_paths = [ s for s in args_suites if s in suite_paths ] |
suites = [] |
for root in suite_paths: |