Merge lp:~salgado/linaro-image-tools/port-create_boot_cmd into lp:linaro-image-tools/11.11
Status: | Merged |
---|---|
Approved by: | Martin Ohlsson |
Approved revision: | 169 |
Merged at revision: | 171 |
Proposed branch: | lp:~salgado/linaro-image-tools/port-create_boot_cmd |
Merge into: | lp:linaro-image-tools/11.11 |
Prerequisite: | lp:~salgado/linaro-image-tools/refactor-create_boot_cmd |
Diff against target: |
256 lines (+117/-23) 7 files modified
.testr.conf (+1/-1) README (+21/-0) linaro-media-create (+21/-22) media_create/boot_cmd.py (+26/-0) media_create/tests/__init__.py (+8/-0) media_create/tests/test_media_create.py (+32/-0) tests/__init__.py (+8/-0) |
To merge this branch: | bzr merge lp:~salgado/linaro-image-tools/port-create_boot_cmd |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Ohlsson (community) | Approve | ||
Review via email: mp+41208@code.launchpad.net |
Description of the change
Port the meat of create_boot_cmd to python and call that from l-m-c.
For now I'm just porting things to python and adding automated tests. Once everything is in python and we have good test coverage we can refactor to avoid duplication and generally improve things.
My plan is to have a separate .py script for every function of l-m-c and then call those scripts from l-m-c. The actual code should be split into as many python functions/classes are necessary, and the python script might need some boilerplate code to handle sys.argv and call its main function. Does that sound sane?
As for the tests, I'm probably keeping them all in a single file for now, but I'd like to know what's the best way to extend the existing test-suite so that a simple 'testr run' runs all tests. Do we need to combine hwpack's and media_create's test_suite's into a single one and use that in .testr.conf?
Hi,
As discussed on the phone, these branches look good to me.
I don't know how to have two test suites run by subunit.run, so we may
need a top level tests.py or something to combine them.
Thanks,
James