Merge lp:~sylvain-pineau/checkbox/device_check into lp:checkbox
Status: | Merged |
---|---|
Approved by: | Jeff Lane |
Approved revision: | 4325 |
Merged at revision: | 4331 |
Proposed branch: | lp:~sylvain-pineau/checkbox/device_check |
Merge into: | lp:checkbox |
Diff against target: |
104 lines (+57/-4) 2 files modified
providers/plainbox-provider-checkbox/jobs/miscellanea.txt.in (+14/-0) providers/plainbox-provider-resource-generic/bin/udev_resource (+43/-4) |
To merge this branch: | bzr merge lp:~sylvain-pineau/checkbox/device_check |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeff Lane | Approve | ||
Sylvain Pineau | Needs Resubmitting | ||
Review via email: mp+293523@code.launchpad.net |
Description of the change
This is a result of the QA roundtable we had last week in Taipei.
Context:
When a device is not detected on a system, all tests that should have been generated are simply not here and could lead to a valid certificate. It's very hard to review a submission and look for missing tests. But it's far easier to review a submission including failed tests.
This MR proposes a new test using the udev parser but in a new way. With the new --list option it enumerates devices per categories (e.g VIDEO, WIRELESS). The tester can then compare this list with the official manifest of the machine and then can fail the test and help the certificate reviewer.
So far only VIDEO, NETWORK, WIRELESS and DISK categories are considered but it's not limited and could be extended to all categories known to the udev parser.
I'll later propose to add this test to all certification test plans as a mandatory job. It will work on both client and server since the tee commands also redirect to stdout (zenity will only be run on desktop).
Sample output from my own system:
======= ======= ======= ======[ Running Selected Jobs ]====== ======= ======= ======= = ------- ------- ------- ----[ Device Check ]------ ------- ------- ------- ----- canonical. certification: :miscellanea/ device_ check canonical. plainbox: :miscellanea
--------------[ Running job 1 / 1. Estimated time left: 0:00:05 ]---------------
-------
ID: 2013.com.
Category: 2013.com.
Purpose:
Device check
Steps:
1. Commence the test
2. Check the system manifest and review the devices known to udev
Pick an action ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
=> press ENTER to continue
c => add a comment
s => skip this job
q => save the session and quit
[csq]:
... 8< -------
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
VIDEO (1):
- Intel Corporation 3rd Gen Core processor Graphics Controller
NETWORK (2):
- Ericsson Business Mobile Networks BV H5321 gw
- Intel Corporation 82579LM Gigabit Network Connection
WIRELESS (1):
- Intel Corporation Centrino Ultimate-N 6300 (3x3 AGN)
DISK (1):
- None HGST HTS725050A7E630
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- >8 ---
Verification:
Are all devices well reported by udev?
Please decide what to do next: ======= ======= ======= ======[ Results ]====== ======= ======= ======= ======= =
outcome: job needs verification
comments:
Pick an action
c => add a comment
p => set outcome to pass
f => set outcome to fail
s => set outcome to skip
r => re-run this job
=> set suggested outcome [job passed]
[cpfsr]: p
Outcome: job passed
=======
☑ : Device Check