Explorar o código

Fix exclude flag (#4818)

Nate %!s(int64=6) %!d(string=hai) anos
pai
achega
d86c1b1bec
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      toolset/utils/metadata.py

+ 4 - 4
toolset/utils/metadata.py

@@ -109,10 +109,10 @@ class Metadata:
 
             # Filter
             for test in config_tests:
-                if len(include) is 0 and len(exclude) is 0:
-                    # No filters, we are running everything
-                    tests.append(test)
-                elif test.name in include:
+                if len(include) > 0:
+                    if test.name in include:
+                        tests.append(test)
+                elif test.name not in exclude:
                     tests.append(test)
 
         # Ensure we were able to locate everything that was