1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-17 04:23:29 +01:00

LinuxDevice: fixed reboot.

- Deal with the dropped connection on issuing "reboot"
- Introduced a fixed initial delay before polling for connection to
  avoid re-connecting to adevice that is still in the process of
  shutting down.
This commit is contained in:
Sergei Trofimov
2016-02-22 09:33:35 +00:00
parent de133cddb4
commit 203a3f7d07
2 changed files with 14 additions and 4 deletions
wlauto
common
utils

@ -172,9 +172,8 @@ class SshShell(object):
logger.warning('Could not get exit code for "{}",\ngot: "{}"'.format(command, exit_code_text))
return output
except EOF:
logger.error('Dropped connection detected.')
self.connection_lost = True
raise
raise DeviceError('Connection dropped.')
def logout(self):
logger.debug('Logging out {}@{}'.format(self.username, self.host))