Fixing exclude filter bug & adding query cache flushing
[simantics/platform.git] / bundles / org.simantics.tests.modelled / src / org / simantics / tests / modelled / junit / v2 / ModelledSTSSuiteRunner.java
index ac42653e57d5536ce776cfd47092413b3ca8ef86..0bfb1f1ceaf02ab61476398c4075e2dead9e165b 100644 (file)
@@ -32,11 +32,11 @@ public class ModelledSTSSuiteRunner extends ParentRunner<ModelledSTSTestRunner>
         // Filter inclusions
         String inclusionFilter = System.getProperty(ModelledSTSRunner.INCLUSION_FILTER);
         for (ModelledSTSTest test : suite.getSortedChildren()) {
-            boolean add = false;
+            boolean add = true;
             if (exclusionFilter != null) {
                 String[] filters = exclusionFilter.split(",");
-                if (!startsWithAny(test, filters)) {
-                    add = true;
+                if (startsWithAny(test, filters)) {
+                    add = false;
                 }
             }
             if (inclusionFilter != null) {