提交 94428d43 编写于 作者: Q Qingtang Zhou

tests.boot_savevm: Get parameters with new method in virt-test

If the parameters are missing, just skip this test.
Signed-off-by: NQingtang Zhou <qzhou@redhat.com>
上级 7bd56b70
......@@ -34,9 +34,9 @@ def run_boot_savevm(test, params, env):
vm.create(params=params)
vm.verify_alive() # This shouldn't require logging in to guest
savevm_delay = float(params.get("savevm_delay"))
savevm_login_delay = float(params.get("savevm_login_delay"))
savevm_login_timeout = float(params.get("savevm_timeout"))
savevm_delay = float(params["savevm_delay"])
savevm_login_delay = float(params["savevm_login_delay"])
savevm_login_timeout = float(params["savevm_timeout"])
savevm_statedir = params.get("savevm_statedir", tempfile.gettempdir())
fd, savevm_statefile = tempfile.mkstemp(suffix='.img', prefix=vm.name+'-',
dir=savevm_statedir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册