-
Notifications
You must be signed in to change notification settings - Fork 71
Migrate iotg watchdog (New) #1962
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
Conversation
LiaoU3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment.
|
Here is the test results with latest commits/ |
LiaoU3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am good with the change, thank you! Please complete the rest of the unit test.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1962 +/- ##
==========================================
+ Coverage 51.03% 51.31% +0.27%
==========================================
Files 385 386 +1
Lines 41507 41668 +161
Branches 7712 7734 +22
==========================================
+ Hits 21184 21380 +196
+ Misses 19563 19525 -38
- Partials 760 763 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- one prerequisite: Set watchdog config variable before starting the tests
Co-authored-by: Massimiliano <[email protected]>
Co-authored-by: Massimiliano <[email protected]>
Co-authored-by: Massimiliano <[email protected]>
Co-authored-by: Massimiliano <[email protected]>
Co-authored-by: Massimiliano <[email protected]>
b723b2c to
5cb32e7
Compare
rickwu666666
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some error while runing detect job.
-------------------[ Detect presence of a Hardware Watchdog ]-------------------
ID: com.canonical.certification::watchdog/detect
Category: Power Management tests
--------------------------------------------------------------------------------
# Perform watchdog detection test
Traceback (most recent call last):
File "/tmp/nest-uylnar1g.8b90791d9334c3bb6c697e89d47e85aff59ed5e552c0aed4bcf935a1c72d6069/watchdog_test.py", line 406, in <module>
main()
File "/tmp/nest-uylnar1g.8b90791d9334c3bb6c697e89d47e85aff59ed5e552c0aed4bcf935a1c72d6069/watchdog_test.py", line 391, in main
watchdog_detection_test(args.module, args.identity)
File "/tmp/nest-uylnar1g.8b90791d9334c3bb6c697e89d47e85aff59ed5e552c0aed4bcf935a1c72d6069/watchdog_test.py", line 298, in watchdog_detection_test
with probe_watchdog_module(watchdog_module):
File "/snap/checkbox24/current/usr/lib/python3.12/contextlib.py", line 137, in __enter__
return next(self.gen)
^^^^^^^^^^^^^^
File "/tmp/nest-uylnar1g.8b90791d9334c3bb6c697e89d47e85aff59ed5e552c0aed4bcf935a1c72d6069/watchdog_test.py", line 126, in probe_watchdog_module
ret = subprocess.run("modprobe {}".format(kernel_module))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/checkbox24/current/usr/lib/python3.12/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/checkbox24/current/usr/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/snap/checkbox24/current/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'modprobe rzg2l_wdt'
seperate the watchdog config and functional test
12578ab to
05e1442
Compare
LiaoU3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
rickwu666666
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Hi @stanley31huang ! I started to look at this, but before I dive deeper and provide line-by-line review, could you:
|
Description
for the watchdog tests, I have made some changes for the implementation in the #1125.
the major changes is to probe watchdog kernel module when the watchdog is not available by default for the
watchdog/detecttest andwatchdog/trigger-system-reset-autotest.Resolved issues
Documentation
Tests