From 19c4caaca9b7e501750cd5cff8b6fd5185a25571 Mon Sep 17 00:00:00 2001 From: Michael Moese Date: Wed, 14 Aug 2024 11:24:55 +0200 Subject: [PATCH] Change regex to search for devices Previously, we explicitely searched for "infiniband" devices from Mellanox. However, if we have those configured as Ethernet devices, we won't find any devices. We know we only have ConnectX-5 devices for InfiniBand (but on the same machines we have ConnectX-4 LX which only do Ethernet - so let's explicitely search for ConnectX-5 devices instead. --- tests/kernel/mellanox_config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kernel/mellanox_config.pm b/tests/kernel/mellanox_config.pm index 2c2d96ef83a6..16fa172510de 100644 --- a/tests/kernel/mellanox_config.pm +++ b/tests/kernel/mellanox_config.pm @@ -42,7 +42,7 @@ sub run { # install dependencies zypper_call('--quiet in pciutils mstflint', timeout => 200); - my @devices = split(' ', script_output("lspci | grep -i infiniband.*mellanox |cut -d ' ' -f 1")); + my @devices = split(' ', script_output("lspci | grep -i mellanox.*ConnectX-5 |cut -d ' ' -f 1")); die "There is no Mellanox card here" if !@devices;