From ff77cc7fff0adc36beb284420010cc6fca8a357a Mon Sep 17 00:00:00 2001 From: snordmann Date: Tue, 7 Nov 2023 19:14:31 +0200 Subject: [PATCH] TL/MLX5: fix bug --- .ci/scripts/run_tests_ucc_mpi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/scripts/run_tests_ucc_mpi.sh b/.ci/scripts/run_tests_ucc_mpi.sh index 41622a2b9a..2ea313fbc6 100755 --- a/.ci/scripts/run_tests_ucc_mpi.sh +++ b/.ci/scripts/run_tests_ucc_mpi.sh @@ -29,12 +29,12 @@ CX7_DEV="" # Find first available active device for d in $(ssh $HEAD_NODE "ibstat -l"); do state=$(ssh $HEAD_NODE "ibstat $d" | grep 'State:' | awk '{print $2}') - type=$(ssh $HEAD_NODE "ibstat $d" | grep 'CA type:' | awk '{print $2}') + type=$(ssh $HEAD_NODE "ibstat $d" | grep 'CA type:' | awk '{print $3}') if [ $state == 'Active' ]; then if [ "x$DEV" == "x" ]; then DEV=$d fi - if [ $state == 'MT4129' ]; then + if [ $type == 'MT4129' ]; then CX7_DEV=$d break fi