mirror-linux/tools/testing/selftests/net/openvswitch
Aleksei Oladko 0bcac7b112 selftests: net: make ovs-dpctl.py fail when pyroute2 is unsupported
The pmtu.sh kselftest configures OVS using ovs-dpctl.py and falls back
to ovs-vsctl only when ovs-dpctl.py fails. However, ovs-dpctl.py exits
with a success status when the installed pyroute2 package version is
lower than 0.6, even though the OVS datapath is not configured.

As a result, pmtu.sh assumes that the setup was successful and
continues running the test, which later fails due to the missing
OVS configuration.

Fix the exit code handling in ovs-dpctl.py so that pmtu.sh can detect
that the setup did not complete successfully and fall back to
ovs-vsctl.

Signed-off-by: Aleksei Oladko <aleksey.oladko@virtuozzo.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Link: https://patch.msgid.link/20260306000127.519064-3-aleksey.oladko@virtuozzo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-06 19:26:23 -08:00
..
Makefile selftests: net/{lib,openvswitch}: extend CFLAGS to keep options from environment 2025-01-27 14:45:27 -08:00
openvswitch.sh selftests: openvswitch: add a simple test for tunnel metadata 2025-09-14 14:28:13 -07:00
ovs-dpctl.py selftests: net: make ovs-dpctl.py fail when pyroute2 is unsupported 2026-03-06 19:26:23 -08:00
settings selftests: openvswitch: Bump timeout to 15 minutes. 2024-07-03 19:29:15 -07:00