Merge lp://staging/~brendan-donegan/checkbox/bug960087_memory_compare_ram_devices into lp://staging/checkbox
Proposed by
Brendan Donegan
Status: | Merged |
---|---|
Merged at revision: | 1482 |
Proposed branch: | lp://staging/~brendan-donegan/checkbox/bug960087_memory_compare_ram_devices |
Merge into: | lp://staging/checkbox |
Diff against target: |
211 lines (+103/-32) (has conflicts) 5 files modified
checkbox/lib/dmi.py (+16/-0) checkbox/parsers/dmidecode.py (+4/-1) debian/changelog (+9/-0) scripts/dmi_resource (+4/-4) scripts/memory_compare (+70/-27) Text conflict in debian/changelog |
To merge this branch: | bzr merge lp://staging/~brendan-donegan/checkbox/bug960087_memory_compare_ram_devices |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marc Tardif (community) | Approve | ||
Brendan Donegan (community) | Needs Resubmitting | ||
Review via email:
|
Description of the change
I reimplemented and restructured the memory_compare script to use Python3 and also to store the dmi and meminfo output into dictionaries, which will allow for more flexibility later on if other fields need to be used to calculate the correct figures. This merge will also fix the bug where ROM devices for example are being included in the calculations, whereas we're only interested in RAM.
To post a comment you must log in.
Since the script is now written in Python, it should use the parsers in Checkbox to avoid duplicating that potentially error prone logic. Please modify the script to use checkbox. parsers. meminfo and checkbox. parsers. dmidecode. Thanks!