Merge lp:~zyga/checkbox/tb-tests into lp:checkbox

Proposed by Zygmunt Krynicki
Status: Merged
Approved by: Daniel Manrique
Approved revision: 3643
Merged at revision: 3642
Proposed branch: lp:~zyga/checkbox/tb-tests
Merge into: lp:checkbox
Diff against target: 48 lines (+20/-0)
2 files modified
plainbox/plainbox/provider_manager.py (+6/-0)
providers/plainbox-provider-checkbox/jobs/monitor.txt.in (+14/-0)
To merge this branch: bzr merge lp:~zyga/checkbox/tb-tests
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+254950@code.launchpad.net

Description of the change

3cf2026 plainbox:provider_manager: load manifest provider for validation
7a9b72b providers:checkbox: add monitor/thunderbolt job

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

One comment on the job itself, the stopgap measure looks hacky but it's probably needed for now so I won't comment too much on that one (LGTM).

review: Needs Fixing
lp:~zyga/checkbox/tb-tests updated
3643. By Zygmunt Krynicki

providers:checkbox: add monitor/thunderbolt job

This patch adds a clone of the 'monitor/hdmi' job for testing
Thunderbolt displays. The test depends on the manifest resource,
specifically on the 'has_thunderbolt' manifest entry.

I've stripped out the wording that said to skip the test if there is no
such port since that's what the manifest is for to tell us.

Signed-off-by: Zygmunt Krynicki <email address hidden>

Revision history for this message
Daniel Manrique (roadmr) wrote :

Thanks, looks clearer now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plainbox/plainbox/provider_manager.py'
2--- plainbox/plainbox/provider_manager.py 2015-03-31 11:12:52 +0000
3+++ plainbox/plainbox/provider_manager.py 2015-04-01 16:50:56 +0000
4@@ -46,6 +46,7 @@
5 from plainbox.impl.job import JobDefinition
6 from plainbox.impl.logging import setup_logging
7 from plainbox.impl.providers.special import get_categories
8+from plainbox.impl.providers.special import get_manifest
9 from plainbox.impl.providers.v1 import InsecureProvider1PlugInCollection
10 from plainbox.impl.providers.v1 import get_user_PROVIDERPATH_entry
11 from plainbox.impl.secure.config import Unset
12@@ -1043,6 +1044,11 @@
13 categories_provider = get_categories()
14 if provider.base_dir != categories_provider.base_dir:
15 provider_list.append(categories_provider)
16+ # Add the built-in 'manifest' provider,
17+ # unless that's the one we're testing
18+ manifest_provider = get_manifest()
19+ if provider.base_dir != manifest_provider.base_dir:
20+ provider_list.append(manifest_provider)
21 _logger.info(_("Validating everything..."))
22 unit_list, exc_list = self.collect_all_units(provider)
23 early_issue_gen = self.get_early_issues(exc_list)
24
25=== modified file 'providers/plainbox-provider-checkbox/jobs/monitor.txt.in'
26--- providers/plainbox-provider-checkbox/jobs/monitor.txt.in 2014-11-10 01:31:35 +0000
27+++ providers/plainbox-provider-checkbox/jobs/monitor.txt.in 2015-04-01 16:50:56 +0000
28@@ -47,6 +47,20 @@
29 Was the desktop displayed correctly on both screens?
30
31 plugin: manual
32+id: monitor/thunderbolt
33+imports: from 2013.com.canonical.plainbox import manifest
34+requires: manifest.has_thunderbolt == 'True'
35+_summary: Display connected via Thunderbolt
36+_description:
37+ PURPOSE:
38+ This test will check your Thunderbolt port as a monitor interconnect.
39+ STEPS:
40+ 1. Connect a display (if not already connected) to the Thunderbolt port on
41+ your system
42+ VERIFICATION:
43+ Was the desktop displayed correctly on the Thunderbolt-connected screen?
44+
45+plugin: manual
46 id: monitor/svideo
47 requires: display.svideo == 'supported'
48 _description:

Subscribers

People subscribed via source and target branches