mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
juno: do not auto-disconnect at the end of the run
Juno connection no persists at the end of the run. Boolean parameter actually_disconnect has been added to allow restoring the old behavior.
This commit is contained in:
parent
f7941bbc25
commit
34a604f4fc
@ -62,6 +62,10 @@ class Juno(BigLittleDevice):
|
|||||||
|
|
||||||
Parameter('bootloader', default='uefi', allowed_values=['uefi', 'u-boot'],
|
Parameter('bootloader', default='uefi', allowed_values=['uefi', 'u-boot'],
|
||||||
description="""Bootloader used on the device."""),
|
description="""Bootloader used on the device."""),
|
||||||
|
Parameter('actually_disconnect', kind=bool, default=False,
|
||||||
|
description="""
|
||||||
|
Actually perfom "adb disconnect" on closing the connection to the device.
|
||||||
|
"""),
|
||||||
|
|
||||||
# VExpress flasher expects a device to have these:
|
# VExpress flasher expects a device to have these:
|
||||||
Parameter('uefi_entry', default='WA',
|
Parameter('uefi_entry', default='WA',
|
||||||
@ -160,7 +164,8 @@ class Juno(BigLittleDevice):
|
|||||||
def disconnect(self):
|
def disconnect(self):
|
||||||
if self._is_ready:
|
if self._is_ready:
|
||||||
super(Juno, self).disconnect()
|
super(Juno, self).disconnect()
|
||||||
adb_disconnect(self.adb_name)
|
if self.actually_disconnect:
|
||||||
|
adb_disconnect(self.adb_name)
|
||||||
self._is_ready = False
|
self._is_ready = False
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user