1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01: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:
Sergei Trofimov 2015-06-30 10:29:50 +01:00
parent f7941bbc25
commit 34a604f4fc

View File

@ -62,6 +62,10 @@ class Juno(BigLittleDevice):
Parameter('bootloader', default='uefi', allowed_values=['uefi', 'u-boot'],
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:
Parameter('uefi_entry', default='WA',
@ -160,7 +164,8 @@ class Juno(BigLittleDevice):
def disconnect(self):
if self._is_ready:
super(Juno, self).disconnect()
adb_disconnect(self.adb_name)
if self.actually_disconnect:
adb_disconnect(self.adb_name)
self._is_ready = False
def reset(self):