From 7b5f5e2ed08ad37796bba9cb012ecd88daf45d18 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 7 Apr 2015 09:06:55 +0100 Subject: [PATCH] Fixing Linux device reset. _is_ready was being set to False before invoking execute("reboot") causing a device not ready error. --- wlauto/common/linux/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index 4de66322..6b651095 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -812,8 +812,8 @@ class LinuxDevice(BaseLinuxDevice): # Power control def reset(self): - self._is_ready = False self.execute('reboot', as_root=True) + self._is_ready = False def hard_reset(self): super(LinuxDevice, self).hard_reset()