[ROCm][CI] Fix false multi-node detection on native CI (#54989)

Signed-off-by: Sheral Kumar <shekumar@amd.com> Co-authored-by: Andreas Karatzas <akaratza@amd.com>

Sheral Kumar committed Sep 2, 2026 at 14:53 UTC 0e3ac4907d21e77cb4781338c49fef17bfea8f2b
1 file changed +1 -1
.buildkite/scripts/hardware_ci/run-amd-test.sh
+1 -1
@@ -645,7 +645,7 @@ is_multi_node() {
645 fi
646 # Fallback: detect the bracket syntax structurally
647 # Pattern: [...] && [...] (per-node command arrays)
648 - if [[ "$cmds" =~ \[.*\].*\&\&.*\[.*\] ]]; then
648 + if [[ "$cmds" == *'] && ['* ]]; then
649 return 0
650 fi
651 return 1