mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-18 22:36:01 +01:00
juno: use bootargs on hard_reset with u-boot
This commit is contained in:
wlauto
@ -495,7 +495,7 @@ class Runner(object):
|
||||
if self.context.reboot_policy.can_reboot and self.device.can('reset_power'):
|
||||
self.logger.info('Attempting to hard-reset the device...')
|
||||
try:
|
||||
self.device.hard_reset()
|
||||
self.device.boot(hard=True)
|
||||
self.device.connect()
|
||||
except DeviceError: # hard_boot not implemented for the device.
|
||||
raise e
|
||||
@ -553,7 +553,7 @@ class Runner(object):
|
||||
except DeviceError: # device may be offline
|
||||
if self.device.can('reset_power'):
|
||||
with self._signal_wrap('INITIAL_BOOT'):
|
||||
self.device.hard_reset()
|
||||
self.device.boot(hard=True)
|
||||
else:
|
||||
raise DeviceError('Cannot connect to device for initial reboot; '
|
||||
'and device does not support hard reset.')
|
||||
|
Reference in New Issue
Block a user