提交 871ce1d1 编写于 作者: L Lukáš Doktor 提交者: Lucas Meneghel Rodrigues

qemu.tests.virtio_console: Force new params in vm.create()

This test started with "start_vm = no" and we are starting the VM
manually. It's not guaranteed, that params were updated in preprocess
so we need to make sure params were updated by calling create with
new params.

One example of incorrect params is when VM exists and is alive from
previous test. In such case preprocess skips initialization (start_vm
= no") and vm.create() destroys and recreates the VM from previous test.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 e1f846a5
......@@ -1936,7 +1936,7 @@ def run(test, params, env):
env_process.preprocess(test, params, env)
vm = env.get_vm(params["main_vm"])
try:
vm.create()
vm.create(params=params)
except Exception, details:
if exp_error_message in str(details):
logging.info("Expected qemu failure. Test PASSED.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册