提交 07c73e67 编写于 作者: L Lukáš Doktor

Fix the vmnames in time_manage test

This test relies on outdated first vm name, while there is "main_vm"
parameter pointing to the correct name. Also it stores all created
vmnames, but instead of relying on this variable it tries to create the
name in later loops.

Ideally one would store the actual vm objects, but let's use this as a
hotfix.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 2558f48c
......@@ -54,7 +54,7 @@ def run(test, params, env):
curr_time = []
timedrift = []
totaldrift = []
vmnames = ["virt-tests-vm1"]
vmnames = [params["main_vm"]]
# Run some load on the host
logging.info("Starting load on host.")
......@@ -86,8 +86,7 @@ def run(test, params, env):
while itr <= int(params["max_itrs"]):
for vmid, se in enumerate(sessions):
# Get the respective vm object
vmname = "virt-tests-vm%d" % (vmid + 1)
vm = env.get_vm(vmname)
vm = env.get_vm(vmnames[vmid])
# Run current iteration
logging.info(
"Rebooting:vm%d iteration %d " % ((vmid + 1), itr))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册