未验证 提交 0734f1ae 编写于 作者: Y YongxueHong 提交者: GitHub

Merge pull request #2165 from qingwangrh/1816066_fix_async_reboot_and_shutdown

Fix async reboot to sync reboot
......@@ -44,11 +44,8 @@ def run(test, params, env):
def _reboot_vm(session):
"""Reboot vm."""
reboot_cmd = params["reboot_cmd"]
error_context.context(
"Rebooting VM by \"%s\"." % reboot_cmd, logging.info)
session.sendline(reboot_cmd)
return vm.wait_for_login(timeout=360)
error_context.context("Rebooting VM.", logging.info)
return vm.reboot(session=session, timeout=360)
def _check_cdrom_info_by_qmp(items):
"""Check the cdrom device info by qmp."""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册