Skip to content

Commit d86c1b1

Browse files
authored
Fix exclude flag (#4818)
1 parent e4c9910 commit d86c1b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toolset/utils/metadata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def gather_tests(self, include=None, exclude=None):
109109

110110
# Filter
111111
for test in config_tests:
112-
if len(include) is 0 and len(exclude) is 0:
113-
# No filters, we are running everything
114-
tests.append(test)
115-
elif test.name in include:
112+
if len(include) > 0:
113+
if test.name in include:
114+
tests.append(test)
115+
elif test.name not in exclude:
116116
tests.append(test)
117117

118118
# Ensure we were able to locate everything that was

0 commit comments

Comments
 (0)