Merge ~bladernr/plainbox-provider-resource:1705745-dmi-supported-resource into plainbox-provider-resource:master
Status: | Merged |
---|---|
Approved by: | Rod Smith |
Approved revision: | 1d4cfc08f5b0a4170d2c55ffe7e2c41e85f2db30 |
Merged at revision: | c8364b3ae393d0d273ecab1906a6402c0c631f51 |
Proposed branch: | ~bladernr/plainbox-provider-resource:1705745-dmi-supported-resource |
Merge into: | plainbox-provider-resource:master |
Diff against target: |
26 lines (+11/-4) 1 file modified
bin/dmi_resource (+11/-4) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Cave (community) | Needs Fixing | ||
Rod Smith | Approve | ||
Review via email: mp+327985@code.launchpad.net |
Description of the change
Adds a 'supported' item to the dmi resource to indicate that the SUT supports DMI (verified by the presense of /sys/devices/
Jobs using this can now say:
requires: dmi.supported == 'True'
Example result from a supported case:
Test DMI data for CPUs passed unspecified 1
Base Board Information:
Chassis Information:
Processor Information:
Version: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
System Information:
Passed all tests
And example where supported is False (simulated by changing the requires from True to False):
Test DMI data for CPUs not supported unspecified 1 job cannot be started: resource expression "dmi.supported == 'False'" evaluates to false
This could (maybe should) replace the arch specific requirements so that DMI jobs will now run on anything that has the dmi directories present, indicating support for dmi.