Merge lp:~bladernr/checkbox/1352376-fix-get_make_and_model-device-tree into lp:checkbox
Proposed by
Jeff Lane
Status: | Merged |
---|---|
Approved by: | Daniel Manrique |
Approved revision: | 3161 |
Merged at revision: | 3161 |
Proposed branch: | lp:~bladernr/checkbox/1352376-fix-get_make_and_model-device-tree |
Merge into: | lp:checkbox |
Diff against target: |
59 lines (+26/-9) 2 files modified
providers/plainbox-provider-checkbox/bin/get_make_and_model (+25/-8) providers/plainbox-provider-checkbox/jobs/miscellanea.txt.in (+1/-1) |
To merge this branch: | bzr merge lp:~bladernr/checkbox/1352376-fix-get_make_and_model-device-tree |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Jeff Lane | Needs Resubmitting | ||
Review via email: mp+229505@code.launchpad.net |
Description of the change
basically a rewrite of get_make_and_model to use lshw instead of directly accessing /sys/class/
Rather than write platform or interface specific bits for multiple methods to get the same data, lshw is fairly universal (universal enough to catch 99% of our use cases) and provides the same data in a uniform way, regardless of the interface used.
To post a comment you must log in.
One tiny request, could you update the job definition (miscellanea/ get_make_ and_model) and change the estimated_duration? On my system it takes close to 2.5 seconds so our current timing data is inaccurate. If it takes longer on e.g. armhf, that would be a good value to use.