Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions tests/generic_config_updater/test_srv6.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@
logger = logging.getLogger(__name__)


@pytest.fixture(autouse=True)
def ignore_srv6_loganalyzer_errors(duthosts, rand_one_dut_hostname, loganalyzer):
"""Ignore expected SRv6 SAI related errors in syncd logs.

On platforms where SRv6 is unsupported, syncd may log errors that are
expected and benign during SRv6 GCU tests.

Args:
duthosts: DUT hosts fixture
rand_one_dut_hostname: Randomly selected DUT hostname
loganalyzer: Loganalyzer utility fixture
"""
if loganalyzer:
duthost = duthosts[rand_one_dut_hostname]
if duthost.hostname in loganalyzer:
loganalyzer[duthost.hostname].ignore_regex.extend([
".*ERR syncd[0-9]*#syncd.*",
])
yield


@pytest.fixture(autouse=True)
def setup_and_cleanup(duthosts, rand_one_dut_hostname, enum_frontend_asic_index):
"""
Expand Down
Loading