From 3f85b11d50bbac9b7e746a1a061dd361ab2fa00f Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Wed, 25 Jan 2023 10:52:53 +0100 Subject: system-offloads-traffic: Skip tests if nc is not present. The following tests use the nc command and should be skipped if nc is not present. - "offloads - check interface meter offloading - offloads disabled" - "offloads - check interface meter offloading - offloads enabled" Fixes: 5660b89a309d ("dpif-netlink: Offloading meter to tc police action") Reported-by: David Marchand Reviewed-by: Louis Peens Signed-off-by: Simon Horman Acked-by: Ilya Maximets Reviewed-by: David Marchand --- tests/system-offloads-traffic.at | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/system-offloads-traffic.at b/tests/system-offloads-traffic.at index 1a6057080..16a4c1a00 100644 --- a/tests/system-offloads-traffic.at +++ b/tests/system-offloads-traffic.at @@ -181,6 +181,7 @@ AT_CLEANUP AT_SETUP([offloads - check interface meter offloading - offloads disabled]) AT_KEYWORDS([dp-meter]) +AT_SKIP_IF([test $HAVE_NC = "no"]) OVS_TRAFFIC_VSWITCHD_START() AT_CHECK([ovs-ofctl -O OpenFlow13 add-meter br0 'meter=1 pktps bands=type=drop rate=1']) @@ -230,6 +231,7 @@ AT_CLEANUP AT_SETUP([offloads - check interface meter offloading - offloads enabled]) AT_KEYWORDS([offload-meter]) AT_SKIP_IF([test $SUPPORT_TC_INGRESS_PPS = "no"]) +AT_SKIP_IF([test $HAVE_NC = "no"]) OVS_TRAFFIC_VSWITCHD_START([], [], [-- set Open_vSwitch . other_config:hw-offload=true]) AT_CHECK([ovs-ofctl -O OpenFlow13 add-meter br0 'meter=1 pktps bands=type=drop rate=1']) -- cgit v1.2.1