From e26f58fbf12cfe5da8716b2a464ce971f18c82e7 Mon Sep 17 00:00:00 2001 From: Andreas Glinserer Date: Mon, 12 May 2025 16:51:01 +0200 Subject: [PATCH 1/2] add a check if wakealarm is supported (bugfix) This avoids a failing test and skips it instead if the rtc does not support an automatic wakeup. --- providers/base/units/suspend/suspend.pxu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/base/units/suspend/suspend.pxu b/providers/base/units/suspend/suspend.pxu index 02d4c3e249..69d96fb081 100644 --- a/providers/base/units/suspend/suspend.pxu +++ b/providers/base/units/suspend/suspend.pxu @@ -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' _summary: Automated test of suspend function _purpose: This is the automated version of suspend/suspend_advanced. From fd1193128724c317f7bb453b2defc8ebcf869128 Mon Sep 17 00:00:00 2001 From: Andreas Glinserer <46827306+aglinserer@users.noreply.github.com> Date: Wed, 21 May 2025 10:36:19 +0200 Subject: [PATCH 2/2] Update providers/base/units/suspend/suspend.pxu This is a easier to read syntax which essentially does the same thing. Co-authored-by: Pierre Equoy --- providers/base/units/suspend/suspend.pxu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/base/units/suspend/suspend.pxu b/providers/base/units/suspend/suspend.pxu index 69d96fb081..df38af3619 100644 --- a/providers/base/units/suspend/suspend.pxu +++ b/providers/base/units/suspend/suspend.pxu @@ -251,7 +251,8 @@ category_id: com.canonical.plainbox::suspend id: suspend/suspend_advanced_auto requires: sleep.mem == 'supported' - rtc.state == 'supported' and rtc.wakealarm == 'supported' + rtc.state == 'supported' + rtc.wakealarm == 'supported' _summary: Automated test of suspend function _purpose: This is the automated version of suspend/suspend_advanced.