From 0e3ac4907d21e77cb4781338c49fef17bfea8f2b Mon Sep 17 00:00:00 2001 From: Sheral Kumar Date: Wed, 2 Sep 2026 14:53:07 -0400 Subject: [PATCH] [ROCm][CI] Fix false multi-node detection on native CI (#54989) Signed-off-by: Sheral Kumar Co-authored-by: Andreas Karatzas --- .buildkite/scripts/hardware_ci/run-amd-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/scripts/hardware_ci/run-amd-test.sh b/.buildkite/scripts/hardware_ci/run-amd-test.sh index 721c690c71..9cc2e1c0ae 100755 --- a/.buildkite/scripts/hardware_ci/run-amd-test.sh +++ b/.buildkite/scripts/hardware_ci/run-amd-test.sh @@ -645,7 +645,7 @@ is_multi_node() { fi # Fallback: detect the bracket syntax structurally # Pattern: [...] && [...] (per-node command arrays) - if [[ "$cmds" =~ \[.*\].*\&\&.*\[.*\] ]]; then + if [[ "$cmds" == *'] && ['* ]]; then return 0 fi return 1