Merge lp://qastaging/~milo/linaro-image-tools/hwpack-format-converter into lp://qastaging/linaro-image-tools/11.11
Status: | Merged |
---|---|
Merged at revision: | 535 |
Proposed branch: | lp://qastaging/~milo/linaro-image-tools/hwpack-format-converter |
Merge into: | lp://qastaging/linaro-image-tools/11.11 |
Diff against target: |
657 lines (+617/-0) 6 files modified
linaro-hwpack-convert (+73/-0) linaro_image_tools/hwpack/hwpack_convert.py (+297/-0) linaro_image_tools/hwpack/hwpack_fields.py (+88/-0) linaro_image_tools/hwpack/tests/__init__.py (+1/-0) linaro_image_tools/hwpack/tests/test_hwpack_converter.py (+132/-0) linaro_image_tools/tests/fixtures.py (+26/-0) |
To merge this branch: | bzr merge lp://qastaging/~milo/linaro-image-tools/hwpack-format-converter |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Approve | ||
Stevan Radaković | Pending | ||
Linaro Infrastructure | Pending | ||
Review via email: mp+115658@code.qastaging.launchpad.net |
Description of the change
Finally, a first merge.
I split it out into a smaller one, othere will follow. In this one there is only the hwpack format converter from INI style into YAML.
The script is called linaro-
All the conversion logic is in the hwpack_converter.py file, a class called HwpackConverter. In the same file there are a series of methods that are used for the conversion itself, and that will be used also in other parts of l-i-t in order to create the new metadata file.
I added also another file, hwpack_fields, that holds all the fields that should be in a hwpack configuration file.
For the test part, tests are provided for the converter: I added a new mocking feature to create a temporary file (I had problems using StrinIO() in this case).
Another note.
Starting from this INI file: /pastebin. linaro. org/691/
https:/
You will get this YAML file: /pastebin. linaro. org/688/
https:/
That INI file can be found here: bazaar. launchpad. net/~linaro- maintainers/ linaro- images/ hwpack. precise. linaro- lt-panda/ view/head: /hwpacks/ linaro- lt-panda
http://