summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@corigine.com>2023-01-25 10:52:53 +0100
committerSimon Horman <simon.horman@corigine.com>2023-01-30 14:49:16 +0100
commit3f85b11d50bbac9b7e746a1a061dd361ab2fa00f (patch)
treeaf1a7c34cb740c3754e6aafef2a91b37e0eb1a55 /tests
parent6e5661d17d908c20c570a5210c2948537ea01b06 (diff)
downloadopenvswitch-3f85b11d50bbac9b7e746a1a061dd361ab2fa00f.tar.gz
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 <david.marchand@redhat.com> Reviewed-by: Louis Peens <louis.peens@corigine.com> Signed-off-by: Simon Horman <simon.horman@corigine.com> Acked-by: Ilya Maximets <i.maximets@ovn.org> Reviewed-by: David Marchand <david.marchand@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/system-offloads-traffic.at2
1 files changed, 2 insertions, 0 deletions
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'])