Skip to content

Commit

Permalink
Consume vendor specific exclude list
Browse files Browse the repository at this point in the history
Signed-off-by: Mesbah-Alam <Mesbah_Alam@ca.ibm.com>
  • Loading branch information
Mesbah-Alam committed Aug 30, 2022
1 parent d4a993c commit 8098262
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions jck/jtrunner/JavaTestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public class JavaTestRunner {
private static String jckConfigLoc;
private static String initialJtxFullPath;
private static String jtxFullPath;
private static String jtxDevFullPath;
private static String kflFullPath;
private static String testFlagJtxFullPath;
private static String krbConfFile;
Expand Down Expand Up @@ -267,6 +268,16 @@ public static boolean generateJTB() throws Exception {
System.out.println("Unable to find additional excludes list file " + jtxFullPath);
jtxFullPath = "";
}

jtxDevFullPath = jckRoot + File.separator + "excludes" + File.separator + jckVersion + "-dev.jtx";
File jtxDevFile = new File(jtxDevFullPath);

if (jtxDevFile.exists()) {
System.out.println("Using additional excludes list file " + jtxDevFullPath);
} else {
System.out.println("Unable to find additional excludes list file " + jtxDevFullPath);
jtxDevFullPath = "";
}

// Look for a known failures list file
kflFullPath = jckRoot + File.separator + "excludes" + File.separator + jckVersion + ".kfl";
Expand Down Expand Up @@ -415,9 +426,9 @@ public static boolean generateJTB() throws Exception {
// Only use default initial jtx exclude and disregard the rest of jck exclude lists
// when running a test via jck_custom.
if (task == null || !task.equals("custom")) {
fileContent += "set jck.excludeList.customFiles \"" + initialJtxFullPath + " " + jtxFullPath + " " + kflFullPath + " " + testFlagJtxFullPath + "\";\n";
fileContent += "set jck.excludeList.customFiles \"" + initialJtxFullPath + " " + jtxFullPath + " " + jtxDevFullPath + " " + kflFullPath + " " + testFlagJtxFullPath + "\";\n";
} else {
fileContent += "set jck.excludeList.customFiles \"" + initialJtxFullPath + " " + jtxFullPath + " " + kflFullPath + "\";\n";
fileContent += "set jck.excludeList.customFiles \"" + initialJtxFullPath + " " + jtxFullPath + " " + jtxDevFullPath + " " + kflFullPath + "\";\n";
}

fileContent += "runTests" + ";\n";
Expand Down

0 comments on commit 8098262

Please sign in to comment.