summaryrefslogtreecommitdiffstats
path: root/kud/tests/topology-manager.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/topology-manager.sh')
-rwxr-xr-xkud/tests/topology-manager.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/kud/tests/topology-manager.sh b/kud/tests/topology-manager.sh
index 5c9f900d..77656d39 100755
--- a/kud/tests/topology-manager.sh
+++ b/kud/tests/topology-manager.sh
@@ -15,8 +15,8 @@ set -o pipefail
source _common.sh
source _functions.sh
-adaptors="X710 XL710 X722"
-if [[ $(lspci | grep -c "Ethernet .* \(${adaptors// /\\|}\)") == "0" ]]; then
+sriov_capable_nodes=$(kubectl get nodes -o json | jq -r '.items[] | select((.status.capacity."intel.com/intel_sriov_700"!=null) and ((.status.capacity."intel.com/intel_sriov_700"|tonumber)>=2)) | .metadata.name')
+if [ -z "$sriov_capable_nodes" ]; then
echo "Ethernet adaptor version is not set. Topology manager test case cannot run on this machine"
exit 0
else