From ac7c31d49e4beef957024c2007b1f604682d9583 Mon Sep 17 00:00:00 2001 From: "Assiouras, Ioannis" Date: Fri, 30 May 2025 05:51:00 +0100 Subject: [PATCH] SWDEV-515261 - strip newline from rocm_agent_enumerator output (#222) --- catch/hipTestMain/hip_test_context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catch/hipTestMain/hip_test_context.cc b/catch/hipTestMain/hip_test_context.cc index c2af3aa603..2f4693f96b 100644 --- a/catch/hipTestMain/hip_test_context.cc +++ b/catch/hipTestMain/hip_test_context.cc @@ -38,7 +38,8 @@ std::string TestContext::substringFound(std::vector list, std::stri std::string TestContext::getCurrentArch() { #if HT_LINUX const char* cmd = - "/opt/rocm/bin/rocm_agent_enumerator | awk '$0 != \"gfx000\"' | xargs | sed -e 's/ /;/g'"; + "/opt/rocm/bin/rocm_agent_enumerator | awk '$0 != \"gfx000\"' | xargs | sed -e 's/ /;/g' | " + "tr -d '\n'"; std::array buffer; std::string result; std::unique_ptr pipe(popen(cmd, "r"), pclose);