提交 10c3023e 编写于 作者: Y Yu Wang

hv_reset: hv_reset function test for windows guest

Reboot guest with hv_reset flag
Signed-off-by: NYu Wang <wyu@redhat.com>
上级 b2f64207
- 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.
先完成此消息的编辑!
想要评论请 注册