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:
@ -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))
|
||||
|
Reference in New Issue
Block a user