Merge lp:~doanac/lava-dispatcher/uefi-from-prak into lp:lava-dispatcher
Proposed by
Andy Doan
Status: | Rejected |
---|---|
Rejected by: | Neil Williams |
Proposed branch: | lp:~doanac/lava-dispatcher/uefi-from-prak |
Merge into: | lp:lava-dispatcher |
Diff against target: |
366 lines (+199/-4) 10 files modified
lava_dispatcher/actions/boot_control.py (+22/-0) lava_dispatcher/actions/deploy.py (+14/-0) lava_dispatcher/client/base.py (+14/-0) lava_dispatcher/client/targetdevice.py (+9/-0) lava_dispatcher/config.py (+1/-0) lava_dispatcher/default-config/lava-dispatcher/device-defaults.conf (+5/-0) lava_dispatcher/default-config/lava-dispatcher/device-types/origen.conf (+5/-0) lava_dispatcher/device/fastmodel.py (+8/-0) lava_dispatcher/device/master.py (+118/-4) lava_dispatcher/device/target.py (+3/-0) |
To merge this branch: | bzr merge lp:~doanac/lava-dispatcher/uefi-from-prak |
Related bugs: | |
Related blueprints: |
Lava validation of UEFI on Origen
(Medium)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Validation Team | Pending | ||
Review via email: mp+137243@code.launchpad.net |
Description of the change
These are the changes from Prakash for UEFI booting in Origen. I've made them into a proper branch so we can discuss the changes.
To post a comment you must log in.
Hey Guys,
I turned this into a proper merge proposal on LP so we have a way to
discuss the changes. My comments are below, basically - I'm pretty sure
we can dramatically simplify this to be a very small change (my guess
<15 lines of code).
On 11/30/2012 09:54 AM, Andy Doan wrote: r/actions/ boot_control. py' /actions/ boot_control. py 2012-11-20 21:22:17 +0000 /actions/ boot_control. py 2012-11-30 15:53:29 +0000 test_data. add_result( "boot_image" , status) linaro_ uefi_image( BaseAction) : options= []): target_ device. boot_options = options boot_linaro_ uefi_image( ) exception( "boot_linaro_ image failed") "Failed to boot uefi test image.") test_data. add_result( "boot_uefi_ image", status)
> === modified file 'lava_dispatche
> --- lava_dispatcher
> +++ lava_dispatcher
> @@ -70,6 +70,28 @@
> finally:
> self.context.
>
> +### UEFI
> +
> +class cmd_boot_
> + """ Call client code to boot to the master image
> + """
> +
> + parameters_schema = _boot_schema
> +
> + def run(self,
> + client = self.client
> + client.
> + status = 'pass'
> + try:
> + client.
> + except:
> + logging.
> + status = 'fail'
> + raise CriticalError(
> + finally:
> + self.context.
> +
> +### UEFI
I don't think this is needed. See my comments for the deploy logic in
master.py below.
> === modified file 'lava_dispatche r/actions/ deploy. py' /actions/ deploy. py 2012-11-20 13:34:19 +0000 /actions/ deploy. py 2012-11-30 15:53:29 +0000 deploy_ linaro_ android( boot, system, data, rootfstype) linaro_ uefi_image( BaseAction) : :'string' ,'optional' : True}, :'string' ,'optional' : True}, erties' : False, deploy_ linaro_ uefi(hwpack, rootfs)
> --- lava_dispatcher
> +++ lava_dispatcher
> @@ -91,6 +91,20 @@
> def run(self, boot, system, data, rootfstype='ext4'):
> self.client.
>
> +## UEFI ##
> +class cmd_deploy_
> + parameters_schema = {
> + 'type': 'object',
> + 'properties' : {
> + 'hwpack': {'type'
> + 'rootfs' : {'type'
> + },
> + 'additionalProp
> + }
> +
> + def run(self, hwpack, rootfs):
> + self.client.
> +## UEFI ##
I don't think this is needed. See my comments for the deploy logic in
master.py below.
> === modified file 'lava_dispatche r/client/ base.py' /client/ base.py 2012-11-29 08:54:47 +0000 /client/ base.py 2012-11-30 15:53:29 +0000 proxy(TESTER_ PS1_PATTERN) info("System is in test image now") uefi_image( self): linaro_ uefi_image( ) prompt( self.proc, '/bin/sh' , timeout=300) info("System is in test image now")
> --- lava_dispatcher
> +++ lava_dispatcher
> @@ -402,6 +402,20 @@
> self.setup_
> logging.
>
> +### UEFI
> + def boot_linaro_
> + """
> + Reboot the system to the uefi test image
> + """
> + logging.info("Boot the uefi test image")
> +
> + self._boot_
> +
> + wait_for_
> + logging.
> +
> +### UEFI
> +
I don't think this is needed. See my comments for the deploy logic in
master.py below.
> === modified file 'lava_dispatche r/client/ targetdevice. py' /client/ targetdevice. py 2012-11-21 22:07:45 +0000
> --- lava_dispatcher
> +++ lava_dis...