From 4d7dde536657c49fd89c9c0253e9bf324a029f69 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Sat, 15 Feb 2025 23:12:53 +0100 Subject: [PATCH] test: bridge_stp_basic: Skip on multi-chip mv88e6xxx systems Until we fix kernelkit/linux#2, tag the affected nodes as providing "broken-stp", and skip this test on those rigs. --- test/case/ietf_interfaces/bridge_stp_basic/test.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/case/ietf_interfaces/bridge_stp_basic/test.py b/test/case/ietf_interfaces/bridge_stp_basic/test.py index 6f9fbf78d..ef01ba3eb 100755 --- a/test/case/ietf_interfaces/bridge_stp_basic/test.py +++ b/test/case/ietf_interfaces/bridge_stp_basic/test.py @@ -16,6 +16,13 @@ import infamy from infamy.util import parallel, until + +def stp_compatible(physical, logical): + # Multi-chip mv88e6xxx systems do not flush their ATU's correctly + # (tracked by kernelkit/linux#2) + return "broken-stp" not in physical["provides"] + + def addbr(dut): ip = { "A": "10.0.0.101", @@ -133,7 +140,7 @@ def port_role(dut, port): with infamy.Test() as test: with test.step("Set up topology and attach to target DUT"): - env = infamy.Env() + env = infamy.Env(nodes_compatible=stp_compatible) a, b, c, d = parallel(lambda: env.attach("A"), lambda: env.attach("B"), lambda: env.attach("C"), lambda: env.attach("D"))