Skip to content

[action] [PR:10082] [Platform_tests/test_watchdog]: Added platform check to disarm watchdog for nokia_ixs7215#11046

Merged
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/10082
Dec 18, 2023
Merged

[action] [PR:10082] [Platform_tests/test_watchdog]: Added platform check to disarm watchdog for nokia_ixs7215#11046
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/10082

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Since watchdog was implemented in Nokia 7215, the api testcase 'test_watchdog' needs additional improvements. The test checks if watchdog is disarmed before running the tests. Since watchdog has now been implemented in Nokia 7215 platform as a service (cpu_wdt.service), watchdog will be armed. The watchdog api tests fail as watchdog is already armed.

How did you do it?

The addition here to check if the platform is 'armhf-nokia_ixs7215_52x-r0' and then disarm the watchdog before the tests start. Once watchdog is disarmed, watchdog api tests will run successfully. After these testcases are complete, we arm the watchdog again by starting the cpu_wdt.service.

How did you verify/test it?

Ran all the watchdog api testcases to verify is they pass. Also checked if the watchdog service is up and running once the testcases are complete.

Any platform specific information?

This conditional check and execution of watchdog disarm and then starting the service after the tests run is specific to nokia 7215 platform.

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #10082

@mssonicbld mssonicbld merged commit 7bc246d into sonic-net:202305 Dec 18, 2023
@mssonicbld mssonicbld deleted the cherry/202305/10082 branch February 4, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants