Skip to content

Commit

Permalink
Remove duplicate testcases
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 committed Sep 16, 2024
1 parent 11647e9 commit c4a8703
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 @@ -1256,15 +1256,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 c4a8703

Please sign in to comment.