From 58273f3d395d745414fecf000a982b6c1a3e862b Mon Sep 17 00:00:00 2001 From: sophia-guo Date: Thu, 19 Sep 2024 12:24:12 -0400 Subject: [PATCH] Remove duplicate testcases (#5610) Remove duplicate testcases in custom target, which makes test results confusing. Signed-off-by: Sophia Guo --- buildenv/jenkins/JenkinsfileBase | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index 377a74ddff..e216cb5e0b 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -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} " + } } } }