提交 780286df 编写于 作者: J Jiří Župka 提交者: Lucas Meneghel Rodrigues

virt: cpuflags kill VM when disk image is unbootable.

Signed-off-by: NJiří Župka <jzupka@redhat.com>
上级 d1c9d89e
......@@ -81,11 +81,16 @@ def run_cpuflags(test, params, env):
vm.create(migration_mode=mig_protocol)
else:
vm.create()
vm.verify_alive()
session = None
if wait:
session = vm.wait_for_login()
try:
vm.verify_alive()
if wait:
session = vm.wait_for_login()
except qemu_vm.ImageUnbootableError:
vm.destroy(gracefully=False)
raise
return (vm, session)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册