Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/base/units/suspend/suspend.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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)

_summary: Automated test of suspend function
_purpose:
This is the automated version of suspend/suspend_advanced.
Expand Down
Loading