Merge ~pgentili/plainbox-provider-checkbox:zapper-usb2 into plainbox-provider-checkbox:master

Proposed by Paolo Gentili
Status: Merged
Approved by: Paolo Gentili
Approved revision: 5e13219cc672b6f426433a840cf05c890c4f0875
Merged at revision: b76724afe2e2bbcb0c34cad183ee6cfc17cfba55
Proposed branch: ~pgentili/plainbox-provider-checkbox:zapper-usb2
Merge into: plainbox-provider-checkbox:master
Diff against target: 81 lines (+42/-2)
2 files modified
units/zapper/jobs.pxu (+40/-2)
units/zapper/test-plan.pxu (+2/-0)
Reviewer Review Type Date Requested Status
Maciej Kisielewski Approve
Review via email: mp+430809@code.launchpad.net

Commit message

Add: usb2.0 version of insertion/removal zapper tests

To post a comment you must log in.
Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Looks good!
+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/zapper/jobs.pxu b/units/zapper/jobs.pxu
2index ee2e767..2767122 100644
3--- a/units/zapper/jobs.pxu
4+++ b/units/zapper/jobs.pxu
5@@ -8,11 +8,30 @@ command: edid_cycle.py "$ZAPPER_HOST"
6
7 unit: template
8 template-resource: zapper_capabilities
9+template-filter: zapper_capabilities.capability == 'USB hotplug'
10+category_id: com.canonical.plainbox::usb
11+id: usb/zapper-usb-insert-{{ port_alias }}
12+template-engine: jinja2
13+_summary: Zapper-driven USB insertion test on port {{ port_alias }}
14+requires: usb.usb2 == 'supported'
15+plugin: shell
16+user: root
17+environ: ZAPPER_HOST
18+command:
19+ {%- if __on_ubuntucore__ %}
20+ checkbox-support-run_watcher --zapper-usb-address={{ port_alias }} insertion usb2
21+ {%- else %}
22+ removable_storage_watcher.py --unmounted --zapper-usb-address={{ port_alias }} insert usb
23+ {% endif -%}
24+estimated_duration: 20
25+
26+unit: template
27+template-resource: zapper_capabilities
28 template-filter: zapper_capabilities.capability == 'USB hotplug' and zapper_capabilities.usb_version == '3'
29 category_id: com.canonical.plainbox::usb
30 id: usb3/zapper-usb-insert-{{ port_alias }}
31 template-engine: jinja2
32-_summary: Zapper-driven USB insertion test on port {{ port_alias }}
33+_summary: Zapper-driven USB 3.0 insertion test on port {{ port_alias }}
34 requires: usb.usb3 == 'supported'
35 plugin: shell
36 user: root
37@@ -27,11 +46,30 @@ estimated_duration: 20
38
39 unit: template
40 template-resource: zapper_capabilities
41+template-filter: zapper_capabilities.capability == 'USB hotplug'
42+category_id: com.canonical.plainbox::usb
43+id: usb/zapper-usb-remove-{{ port_alias }}
44+template-engine: jinja2
45+_summary: Zapper-driven USB removal test on port {{ port_alias }}
46+requires: usb.usb2 == 'supported'
47+plugin: shell
48+user: root
49+environ: ZAPPER_HOST
50+command:
51+ {%- if __on_ubuntucore__ %}
52+ checkbox-support-run_watcher --zapper-usb-address={{ port_alias }} removal usb2
53+ {%- else %}
54+ removable_storage_watcher.py --unmounted --zapper-usb-address={{ port_alias }} remove usb
55+ {% endif -%}
56+estimated_duration: 20
57+
58+unit: template
59+template-resource: zapper_capabilities
60 template-filter: zapper_capabilities.capability == 'USB hotplug' and zapper_capabilities.usb_version == '3'
61 category_id: com.canonical.plainbox::usb
62 id: usb3/zapper-usb-remove-{{ port_alias }}
63 template-engine: jinja2
64-_summary: Zapper-driven USB removal test on port {{ port_alias }}
65+_summary: Zapper-driven USB 3.0 removal test on port {{ port_alias }}
66 requires: usb.usb3 == 'supported'
67 plugin: shell
68 user: root
69diff --git a/units/zapper/test-plan.pxu b/units/zapper/test-plan.pxu
70index 889fb50..8919a7f 100644
71--- a/units/zapper/test-plan.pxu
72+++ b/units/zapper/test-plan.pxu
73@@ -12,6 +12,8 @@ _name: Tests using Zapper
74 _description: Tests using Zapper
75 include:
76 monitor/zapper-edid
77+ usb/zapper-usb-insert-.*
78+ usb/zapper-usb-remove-.*
79 usb3/zapper-usb-insert-.*
80 usb3/zapper-usb-remove-.*
81 bootstrap_include:

Subscribers

People subscribed via source and target branches