Skip to content

Commit

Permalink
Skipping enable_queue_counterpoll_type fixture for Marvell platforms (s…
Browse files Browse the repository at this point in the history
…onic-net#16019)

What is the motivation for this PR?
Fixture enable_queue_counterpoll_type in snmp is enabling queue counterpolls. But for Nokia 7215 armhf platforms, as queue statistics are not supported, there is an error while executing this command : "SAI_OBJECT_TYPE_QUEUE is not Supported". So, added a skip condition inside the fixture for Nokia 7215 armhf platforms

How did you do it?
Added condition inside fixture to skip for Nokia 7215 armhf platform

How did you verify/test it?
Run snmp test suite and verify fixture is not executed on Nokia-7215 armhf platforms
  • Loading branch information
harish-kalyanaraman authored and mssonicbld committed Dec 26, 2024
1 parent 8d21043 commit c72da9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/snmp/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def check_redis_output(duthost, key):
@pytest.fixture(scope="module", autouse=True)
def enable_queue_counterpoll_type(duthosts):
for duthost in duthosts:
duthost.command('counterpoll queue enable')
if duthost.facts['platform'] not in ['armhf-nokia_ixs7215_52x-r0']:
duthost.command('counterpoll queue enable')


def pytest_addoption(parser):
Expand Down

0 comments on commit c72da9b

Please sign in to comment.