Skip to content

Commit

Permalink
Remove duplicate testcases (#5610)
Browse files Browse the repository at this point in the history
Remove duplicate testcases in custom target, which makes test results
confusing.

Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo authored Sep 19, 2024
1 parent a99b3e6 commit 58273f3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -1262,15 +1262,25 @@ def addFailedTestsGrinderLink(paths=""){
failedTestCasesInfo = failedTestCasesInfo.substring(0, failedTestCasesInfo.indexOf('Test results:'))
failedTestCasesInfo = failedTestCasesInfo.split("\\n").join(" ").replaceAll("TEST: ", "")
if (failedtest.startsWith("jdk_")) {
jdkFailedTestCaseList += "${failedTestCasesInfo} "
if (!jdkFailedTestCaseList.contains(failedTestCasesInfo)) {
jdkFailedTestCaseList += "${failedTestCasesInfo} "
}
} else if (failedtest.startsWith("jck-runtime") || failedtest.startsWith("jckruntime")) {
jckRuntimeFailedTestCaseList += "${failedTestCasesInfo} "
if (!jckRuntimeFailedTestCaseList.contains(failedTestCasesInfo)) {
jckRuntimeFailedTestCaseList += "${failedTestCasesInfo} "
}
} else if (failedtest.startsWith("jck-compiler") || failedtest.startsWith("jckcompiler")) {
jckCompilerFailedTestCaseList += "${failedTestCasesInfo} "
if (!jckCompilerFailedTestCaseList.contains(failedTestCasesInfo)) {
jckCompilerFailedTestCaseList += "${failedTestCasesInfo} "
}
} else if (failedtest.startsWith("jck-devtools") || failedtest.startsWith("jckdevtools")) {
jckDevtoolsFailedTestCaseList += "${failedTestCasesInfo} "
if (!jckDevtoolsFailedTestCaseList.contains(failedTestCasesInfo)) {
jckDevtoolsFailedTestCaseList += "${failedTestCasesInfo} "
}
} else {
hotspotFailedTestCaseList += "${failedTestCasesInfo} "
if (!hotspotFailedTestCaseList.contains(failedTestCasesInfo)) {
hotspotFailedTestCaseList += "${failedTestCasesInfo} "
}
}
}
}
Expand Down

0 comments on commit 58273f3

Please sign in to comment.