未验证 提交 7ed38f63 编写于 作者: Y YongxueHong 提交者: GitHub

Merge pull request #2202 from kimi1978wy/1825123

reboot_with_hv_reset: hv_reset function test for windows guest
- hv_reset:
only Windows
type = hv_reset
start_vm = no
not_preprocess = yes
hv_flags = +kvm_pv_unhalt,hv_reset
from virttest import env_process
def run(test, params, env):
"""
Reboot test with hv_reset flag:
1) Log into a guest
2) Send a reboot command in guest
3) Wait until the guest is up again
4) Log into the guest to verify it's up again
:param test: QEMU test object
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment.
"""
params["cpu_model_flags"] = params["hv_flags"]
params["start_vm"] = "yes"
vm_name = params["main_vm"]
env_process.preprocess_vm(test, params, env, vm_name)
vm = env.get_vm(vm_name)
vm.reboot(vm.wait_for_login(timeout=360))
vm.verify_alive()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册