Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/common/reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def execute_reboot_helper():
timeout=timeout,
module_ignore_errors=True)

if 'failed' in res or ('msg' in res and 'Timeout' in res['msg']):
if res.is_failed or ('msg' in res and 'Timeout' in res['msg']):
if reboot_res.ready():
logger.error('reboot result: {}'.format(reboot_res.get()))
raise Exception('DUT did not shutdown')
Expand All @@ -131,7 +131,7 @@ def execute_reboot_helper():
delay=delay,
timeout=timeout,
module_ignore_errors=True)
if 'failed' in res or ('msg' in res and 'Timeout' in res['msg']):
if res.is_failed or ('msg' in res and 'Timeout' in res['msg']):
raise Exception('DUT did not startup')

logger.info('ssh has started up')
Expand Down