Skip to content

Commit 528f96f

Browse files
tudupamssonicbld
authored andcommitted
Added platform check to disarm watchdog for nokia_ixs7215 (sonic-net#10082)
1 parent bccce87 commit 528f96f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/platform_tests/api/test_watchdog.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,23 @@ class TestWatchdogApi(PlatformApiTestBase):
3939
''' Hardware watchdog platform API test cases '''
4040

4141
@pytest.fixture(scope='function', autouse=True)
42-
def watchdog_not_running(self, platform_api_conn):
42+
def watchdog_not_running(self, platform_api_conn, duthosts, enum_rand_one_per_hwsku_hostname):
4343
''' Fixture that automatically runs on each test case and
4444
verifies that watchdog is not running before the test begins
4545
and disables it after the test ends'''
4646

47+
duthost = duthosts[enum_rand_one_per_hwsku_hostname]
48+
if duthost.facts['platform'] == 'armhf-nokia_ixs7215_52x-r0':
49+
duthost.shell("watchdogutil disarm")
50+
4751
assert not watchdog.is_armed(platform_api_conn)
4852

4953
try:
5054
yield
5155
finally:
5256
watchdog.disarm(platform_api_conn)
57+
if duthost.facts['platform'] == 'armhf-nokia_ixs7215_52x-r0':
58+
duthost.shell("systemctl start cpu_wdt.service")
5359

5460
@pytest.fixture(scope='module')
5561
def conf(self, request, duthosts, enum_rand_one_per_hwsku_hostname):

0 commit comments

Comments
 (0)