Skip to content

Commit

Permalink
Flags for Required Features:
Browse files Browse the repository at this point in the history
  • Loading branch information
annaibm committed Sep 23, 2024
1 parent 3a1a75e commit 824424b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/testKitGen/TestInfoParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ public TestInfo parse() {
}
Set<String> testFlags = new HashSet<>(arg.getTestFlag());
boolean requiredFeatureFound = false;
boolean hasRequiredFeature = false;
for (Map.Entry<String,String> entry : ti.getFeatures().entrySet()) {
String featureOpt = entry.getValue().toLowerCase();
if (featureOpt.equals("required")) {
hasRequiredFeature = true;
if (isFeatureInTestFlags(testFlags, entry.getKey())) {
requiredFeatureFound = true;
break;
Expand All @@ -108,7 +110,7 @@ public TestInfo parse() {
System.exit(1);
}
}
if (!requiredFeatureFound) {
if (hasRequiredFeature && !requiredFeatureFound) {
return null;
}
if (testFlags.contains("aot")) {
Expand Down

0 comments on commit 824424b

Please sign in to comment.