Skip to content

Commit

Permalink
Ignore variations when JVM_OPTIONS is set
Browse files Browse the repository at this point in the history
  • Loading branch information
zzambers committed Sep 16, 2024
1 parent ccdcb43 commit 87dbbb3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/org/testKitGen/TestInfoParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,14 @@ public TestInfo parse() {
getElements(ti.getPlatformRequirementsList(), "platformRequirementsList", "platformRequirements", null, ti.getTestCaseName());

List<String> variations = new ArrayList<String>();
getElements(variations, "variations", "variation", null, ti.getTestCaseName());
List<Variation> listOfVars = new ArrayList<Variation>();
for (int i = 0; i < variations.size(); i++) {
String subTestName = ti.getTestCaseName() + "_" + i;
Variation var = parseVariation(subTestName, variations.get(i), ti.getPlatform(), ti.getPlatformRequirementsList());
listOfVars.add(var);
if (System.getenv("JVM_OPTIONS") == null) {
getElements(variations, "variations", "variation", null, ti.getTestCaseName());
for (int i = 0; i < variations.size(); i++) {
String subTestName = ti.getTestCaseName() + "_" + i;
Variation var = parseVariation(subTestName, variations.get(i), ti.getPlatform(), ti.getPlatformRequirementsList());
listOfVars.add(var);
}
}
if (variations.size() == 0) {
String subTestName = ti.getTestCaseName() + "_0";
Expand Down

0 comments on commit 87dbbb3

Please sign in to comment.