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
diff --git a/units/zapper/jobs.pxu b/units/zapper/jobs.pxu
index ee2e767..2767122 100644
--- a/units/zapper/jobs.pxu
+++ b/units/zapper/jobs.pxu
@@ -8,11 +8,30 @@ command: edid_cycle.py "$ZAPPER_HOST"
88
9unit: template9unit: template
10template-resource: zapper_capabilities10template-resource: zapper_capabilities
11template-filter: zapper_capabilities.capability == 'USB hotplug'
12category_id: com.canonical.plainbox::usb
13id: usb/zapper-usb-insert-{{ port_alias }}
14template-engine: jinja2
15_summary: Zapper-driven USB insertion test on port {{ port_alias }}
16requires: usb.usb2 == 'supported'
17plugin: shell
18user: root
19environ: ZAPPER_HOST
20command:
21 {%- if __on_ubuntucore__ %}
22 checkbox-support-run_watcher --zapper-usb-address={{ port_alias }} insertion usb2
23 {%- else %}
24 removable_storage_watcher.py --unmounted --zapper-usb-address={{ port_alias }} insert usb
25 {% endif -%}
26estimated_duration: 20
27
28unit: template
29template-resource: zapper_capabilities
11template-filter: zapper_capabilities.capability == 'USB hotplug' and zapper_capabilities.usb_version == '3'30template-filter: zapper_capabilities.capability == 'USB hotplug' and zapper_capabilities.usb_version == '3'
12category_id: com.canonical.plainbox::usb31category_id: com.canonical.plainbox::usb
13id: usb3/zapper-usb-insert-{{ port_alias }}32id: usb3/zapper-usb-insert-{{ port_alias }}
14template-engine: jinja233template-engine: jinja2
15_summary: Zapper-driven USB insertion test on port {{ port_alias }}34_summary: Zapper-driven USB 3.0 insertion test on port {{ port_alias }}
16requires: usb.usb3 == 'supported'35requires: usb.usb3 == 'supported'
17plugin: shell36plugin: shell
18user: root37user: root
@@ -27,11 +46,30 @@ estimated_duration: 20
2746
28unit: template47unit: template
29template-resource: zapper_capabilities48template-resource: zapper_capabilities
49template-filter: zapper_capabilities.capability == 'USB hotplug'
50category_id: com.canonical.plainbox::usb
51id: usb/zapper-usb-remove-{{ port_alias }}
52template-engine: jinja2
53_summary: Zapper-driven USB removal test on port {{ port_alias }}
54requires: usb.usb2 == 'supported'
55plugin: shell
56user: root
57environ: ZAPPER_HOST
58command:
59 {%- if __on_ubuntucore__ %}
60 checkbox-support-run_watcher --zapper-usb-address={{ port_alias }} removal usb2
61 {%- else %}
62 removable_storage_watcher.py --unmounted --zapper-usb-address={{ port_alias }} remove usb
63 {% endif -%}
64estimated_duration: 20
65
66unit: template
67template-resource: zapper_capabilities
30template-filter: zapper_capabilities.capability == 'USB hotplug' and zapper_capabilities.usb_version == '3'68template-filter: zapper_capabilities.capability == 'USB hotplug' and zapper_capabilities.usb_version == '3'
31category_id: com.canonical.plainbox::usb69category_id: com.canonical.plainbox::usb
32id: usb3/zapper-usb-remove-{{ port_alias }}70id: usb3/zapper-usb-remove-{{ port_alias }}
33template-engine: jinja271template-engine: jinja2
34_summary: Zapper-driven USB removal test on port {{ port_alias }}72_summary: Zapper-driven USB 3.0 removal test on port {{ port_alias }}
35requires: usb.usb3 == 'supported'73requires: usb.usb3 == 'supported'
36plugin: shell74plugin: shell
37user: root75user: root
diff --git a/units/zapper/test-plan.pxu b/units/zapper/test-plan.pxu
index 889fb50..8919a7f 100644
--- a/units/zapper/test-plan.pxu
+++ b/units/zapper/test-plan.pxu
@@ -12,6 +12,8 @@ _name: Tests using Zapper
12_description: Tests using Zapper12_description: Tests using Zapper
13include:13include:
14 monitor/zapper-edid14 monitor/zapper-edid
15 usb/zapper-usb-insert-.*
16 usb/zapper-usb-remove-.*
15 usb3/zapper-usb-insert-.*17 usb3/zapper-usb-insert-.*
16 usb3/zapper-usb-remove-.*18 usb3/zapper-usb-remove-.*
17bootstrap_include:19bootstrap_include:

Subscribers

People subscribed via source and target branches