Merge ~sylvain-pineau/plainbox-provider-resource:fix-1851473 into plainbox-provider-resource:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 2bcc89298dcd62896995b90ff90d5ef22c7c986d
Merged at revision: 5258219ef8fd27d9c42ca04e155be4b870972543
Proposed branch: ~sylvain-pineau/plainbox-provider-resource:fix-1851473
Merge into: plainbox-provider-resource:master
Diff against target: 29 lines (+6/-5)
1 file modified
jobs/resource.pxu (+6/-5)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+375203@code.launchpad.net

Description of the change

Fixes linked bug

ID: com.canonical.certification::usb
Category: com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
 WARNING: Failure to read usb.ids
(<class 'FileNotFoundError'>, FileNotFoundError(2, 'No such file or directory'), <traceback object at 0x7fb0288a1048>)
usb2: supported
 WARNING: Failure to read usb.ids
(<class 'FileNotFoundError'>, FileNotFoundError(2, 'No such file or directory'), <traceback object at 0x7f095acedfc8>)
usb3: unsupported

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
diff --git a/jobs/resource.pxu b/jobs/resource.pxu
index b4adb11..a520deb 100644
--- a/jobs/resource.pxu
+++ b/jobs/resource.pxu
@@ -218,6 +218,7 @@ requires: package.name == "x11-xserver-utils"
218_summary: Creates display resource info from xrandr output218_summary: Creates display resource info from xrandr output
219219
220id: usb220id: usb
221template-engine: jinja2
221estimated_duration: 0.33222estimated_duration: 0.33
222plugin: resource223plugin: resource
223_description: Creates resource info for supported USB versions224_description: Creates resource info for supported USB versions
@@ -225,11 +226,11 @@ _summary: Collect information about supported types of USB
225command:226command:
226 for version in 2 3; do227 for version in 2 3; do
227 echo -n "usb$version: "228 echo -n "usb$version: "
228 if [[ -v SNAP ]]; then229 {%- if __on_ubuntucore__ %}
229 checkbox-support-lsusb -f $SNAP/checkbox-runtime/var/lib/usbutils/usb.ids | grep -q "Linux Foundation ${version}.00 root hub" && echo "supported" || echo "unsupported"230 checkbox-support-lsusb -f $SNAP/checkbox-runtime/var/lib/usbutils/usb.ids | grep -q "Linux Foundation ${version}.00 root hub" && echo "supported" || echo "unsupported"
230 else231 {%- else %}
231 lsusb | grep -q "Linux Foundation ${version}.0 root hub" && echo "supported" || echo "unsupported"232 lsusb | grep -q "Linux Foundation ${version}.0 root hub" && echo "supported" || echo "unsupported"
232 fi233 {% endif -%}
233 done234 done
234235
235id: xinput236id: xinput

Subscribers

People subscribed via source and target branches