Merge ~sylvain-pineau/plainbox-provider-snappy:rtc_sleep_resources into plainbox-provider-snappy:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: c80e53d3ad7922f64aa5f5f3fe34406a21cedbbc
Merged at revision: c80e53d3ad7922f64aa5f5f3fe34406a21cedbbc
Proposed branch: ~sylvain-pineau/plainbox-provider-snappy:rtc_sleep_resources
Merge into: plainbox-provider-snappy:master
Diff against target: 26 lines (+18/-0)
1 file modified
plainbox-provider-snappy-resource/units/resource.pxu (+18/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+304231@code.launchpad.net

Description of the change

Two more resources, rtc and sleep to be able to skip fwts S3/S4 tests on platforms where suspend to disk/ram is not supported and/or where we cannot use the RTC to wake up from suspend.

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

self-approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/plainbox-provider-snappy-resource/units/resource.pxu b/plainbox-provider-snappy-resource/units/resource.pxu
2index 988a6f1..406dddf 100644
3--- a/plainbox-provider-snappy-resource/units/resource.pxu
4+++ b/plainbox-provider-snappy-resource/units/resource.pxu
5@@ -110,3 +110,21 @@ plugin: resource
6 command: meminfo_resource
7 _description: Generates resource info based on /proc/meminfo
8 _summary: Collect information about system memory (/proc/meminfo)
9+
10+id: sleep
11+estimated_duration: 0.03
12+plugin: resource
13+command: for state in `cat /sys/power/state`; do echo "$state: supported"; done
14+_description: Create resource info for supported sleep states
15+
16+id: rtc
17+estimated_duration: 0.02
18+plugin: resource
19+command:
20+ if [ -e /sys/class/rtc ]
21+ then
22+ echo "state: supported"
23+ else
24+ echo "state: unsupported"
25+ fi
26+_description: Creates resource info for RTC

Subscribers

People subscribed via source and target branches