Skip to content

Conversation

@nateinaction
Copy link
Collaborator

Ensure watchdog integration test cleans up after itself

Description

Currently the watchdog tests permanently stop the watchdog, this PR ensures the watchdog is restarted after the tests complete.

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Z Tests
  • Manual testing (describe steps)

Screenshots / Recordings (if applicable)

Checklist

  • Written detailed sdd with requirements, channels, ports, commands, telemetry defined and correctly formatted and spelled
  • Have written relevant integration tests and have documented them in the sdd
  • Have done a code review with
  • Have tested this PR on every supported board with correct board definitions

Further Notes / Considerations

// Only perform actions when stop not requested
if (!this->m_stopRequested) {
// Only perform actions when run is enabled
if (this->m_run) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swapped logic from running when false to running when true. Helps me understand the state of the watchdog.

@ Command to stop the watchdog petter
sync command TEST_STOP_WATCHDOG(
@ Command to stop the watchdog
sync command STOP_WATCHDOG(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed command name to no longer be prefixed by TEST_. I believe disabling the watchdog via command (causing a hard reboot) is one of the original requirements so it feels like it's no longer a "test command"

@Mikefly123 Mikefly123 self-requested a review September 30, 2025 23:27
Copy link
Contributor

@Mikefly123 Mikefly123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nateinaction nateinaction merged commit db9d018 into main Sep 30, 2025
3 of 4 checks passed
@nateinaction nateinaction deleted the watchdog-int-test-cleanup branch September 30, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants