Skip to content

Commit

Permalink
TC-specific ignore SAI_SWITCH_ATTR, SAI_OBJECT_TYPE logs
Browse files Browse the repository at this point in the history
  • Loading branch information
maunnikr-cisco authored Sep 27, 2024
1 parent 6cfca34 commit 5910576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/drop_packets/test_drop_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ def ignore_expected_loganalyzer_exceptions(duthosts, rand_one_dut_hostname, loga
CopperCableIgnoreRegex = [
".* ERR pmon#xcvrd.*no suitable app for the port appl.*host_lane_count.*host_speed.*"
]
# Ignore time span WD exceeded error, and contextual log event messages
SAISwitchIgnoreRegex = [
".* ERR syncd.*#syncd.*logEventData:.*SAI_SWITCH_ATTR.*",
".* ERR syncd.*#syncd.*logEventData:.*SAI_OBJECT_TYPE_SWITCH.*"
]
duthost = duthosts[rand_one_dut_hostname]
if loganalyzer: # Skip if loganalyzer is enabled
loganalyzer[duthost.hostname].ignore_regex.extend(CopperCableIgnoreRegex)
loganalyzer[duthost.hostname].ignore_regex.extend(SAISwitchIgnoreRegex)


@pytest.fixture(autouse=True, scope="module")
Expand Down

0 comments on commit 5910576

Please sign in to comment.