Merge ~jocave/plainbox-provider-resource:server-snappy-mods into plainbox-provider-resource:master

Proposed by Jonathan Cave
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 54a266073d8f4c50bd98e1aa76c43737fa839f9c
Merged at revision: 072f2f9128b4dbc0da0f0d94a219947d8f07f5c1
Proposed branch: ~jocave/plainbox-provider-resource:server-snappy-mods
Merge into: plainbox-provider-resource:master
Diff against target: 34 lines (+5/-4)
1 file modified
jobs/resource.pxu (+5/-4)
Reviewer Review Type Date Requested Status
Paul Larson Approve
Review via email: mp+326853@code.launchpad.net

Description of the change

Update requires field of virtualization resource to support running on snappy

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/jobs/resource.pxu b/jobs/resource.pxu
2index c64b2a0..f9834eb 100644
3--- a/jobs/resource.pxu
4+++ b/jobs/resource.pxu
5@@ -200,8 +200,8 @@ estimated_duration: 0.33
6 plugin: resource
7 _description: Creates resource info for supported USB versions
8 _summary: Collect information about supported types of USB
9-command:
10- for version in 2 3; do
11+command:
12+ for version in 2 3; do
13 echo -n "usb$version: "
14 if [[ -v SNAP ]]; then
15 lsusb.py -f $SNAP/var/lib/usbutils/usb.ids | grep -q "Linux Foundation ${version}.00 root hub" && echo "supported" || echo "unsupported"
16@@ -236,7 +236,8 @@ command: mobilebroadband_resource
17 id: virtualization
18 estimated_duration: 0.13
19 plugin: resource
20-requires: package.name == "cpu-checker"
21+requires:
22+ package.name == "cpu-checker" or executable.name == 'kvm-ok'
23 _description: Resource for hardware virtualization
24 command:
25 if kvm-ok > /dev/null
26@@ -255,7 +256,7 @@ _description: Creates resource info for wifi supported protocols/interfaces
27 id: rtc
28 estimated_duration: 0.02
29 plugin: resource
30-command:
31+command:
32 if [ -e /sys/class/rtc ]
33 then
34 echo "state: supported"

Subscribers

People subscribed via source and target branches