-
Notifications
You must be signed in to change notification settings - Fork 60
add a check if wakealarm is supported (bugfix) #1921
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1921 +/- ##
=======================================
Coverage 50.47% 50.47%
=======================================
Files 382 382
Lines 41055 41055
Branches 6895 6895
=======================================
Hits 20722 20722
Misses 19587 19587
Partials 746 746
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:
|
This avoids a failing test and skips it instead if the rtc does not support an automatic wakeup.
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.
Thanks for your contribution!
I left a comment inline.
Can you describe the use case you have and the issue you're encountering? This job is very sensitive because it's used in almost every test plan we maintain, so modifying it is always a bit risky.
@@ -251,7 +251,7 @@ category_id: com.canonical.plainbox::suspend | |||
id: suspend/suspend_advanced_auto | |||
requires: | |||
sleep.mem == 'supported' | |||
rtc.state == 'supported' | |||
rtc.state == 'supported' and rtc.wakealarm == 'supported' |
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.
rtc.state == 'supported' and rtc.wakealarm == 'supported' | |
rtc.state == 'supported' | |
rtc.wakealarm == 'supported' |
You can just place the new requirement on another line and it acts as an and
(see doc)
Description
This avoids a failing test and skips it instead if the rtc does not support an automatic wakeup.
The
suspend_advanced_auto
job is failing even though it cannot be run when the wakealarm is not supported.Resolved issues
N/A
Documentation
N/A
Tests
N/A