From fd80ed5489904c6326fecf16670af04f641545e6 Mon Sep 17 00:00:00 2001 From: Anna Babu Palathingal <148897727+annaibm@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:49:06 -0400 Subject: [PATCH] Removed _xl for mac platform in TRSS query - The platform for aarch64_mac should not include _xl in TRSS url when querying for test execution times, - Adjusted the code to remove _xl from the platform string if the OS is macOS. related: https://github.com/adoptium/TKG/issues/557 Signed-off-by: Anna Babu Palathingal --- src/org/testKitGen/TestDivider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/testKitGen/TestDivider.java b/src/org/testKitGen/TestDivider.java index fd7de2cd..4fcb4078 100644 --- a/src/org/testKitGen/TestDivider.java +++ b/src/org/testKitGen/TestDivider.java @@ -225,8 +225,11 @@ private Map getDataFromTRSS() { String group = getGroup(); String level = getLevel(); Map map = new HashMap(); - String URL = constructURL(impl, plat, group, level); String osName = System.getProperty("os.name").toLowerCase(); + if (osName.contains("mac")) { + plat = plat.replace("_xl", ""); + } + String URL = constructURL(impl, plat, group, level); String command; if (osName.contains("win")) {