From 34a604f4fc6f11e35191d615af24a4130596ee83 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 30 Jun 2015 10:29:50 +0100 Subject: [PATCH] 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. --- wlauto/devices/android/juno/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wlauto/devices/android/juno/__init__.py b/wlauto/devices/android/juno/__init__.py index 55f81fee..31629f02 100644 --- a/wlauto/devices/android/juno/__init__.py +++ b/wlauto/devices/android/juno/__init__.py @@ -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):