Skip to content

Commit

Permalink
test: bridge_stp_basic: Skip on multi-chip mv88e6xxx systems
Browse files Browse the repository at this point in the history
Until we fix kernelkit/linux#2, tag the affected nodes as providing
"broken-stp", and skip this test on those rigs.
  • Loading branch information
wkz committed Feb 16, 2025
1 parent 3c06799 commit 4d7dde5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/case/ietf_interfaces/bridge_stp_basic/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"))

Expand Down

0 comments on commit 4d7dde5

Please sign in to comment.