Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

tudupa
Copy link
Contributor

@tudupa tudupa commented Sep 20, 2023

  • 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.

@tudupa tudupa requested a review from prgeor as a code owner September 20, 2023 20:19
@tudupa
Copy link
Contributor Author

tudupa commented Sep 21, 2023

@Blueve Please check this PR for the newly implemented watchdog service.

@Blueve
Copy link
Collaborator

Blueve commented Oct 11, 2023

@prgeor I think we might need refactor this in future if the watchdog enablement can be configurable for a platform. We might need a new platform API to check if the platform enabled watchdog by default then the test can make decision smartly

@Blueve
Copy link
Collaborator

Blueve commented Oct 12, 2023

Merge after sonic-net/sonic-buildimage#16612 completed

@Pavan-Nokia
Copy link

@Blueve @yxieca We can merge this PR now that sonic-net/sonic-buildimage#16612 is Merged

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #11046

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #11051

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.

7 participants