qemu: pci_hotplug - Introduce hotplug_timeout

If we set the global test timeout as the timeout for
the hotplug operation, if it is reached due to a QEMU
bug the test will never end properly while executing
under autotest. So enforce a specific timeout,
a lot smaller than the typical global test timeout.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 ac5c2325
......@@ -5,6 +5,7 @@
pci_num = 1
repeat_times = 1
wait_secs_for_hook_up = 3
hotplug_timeout = 360
variants:
- with_reboot:
sub_type_after_unplug = boot
......
......@@ -240,7 +240,7 @@ def run_pci_hotplug(test, params, env):
timeout = int(params.get("login_timeout", 360))
session = vm.wait_for_login(timeout=timeout)
test_timeout = int(params.get("test_timeout", 360))
test_timeout = int(params.get("hotplug_timeout", 360))
reference_cmd = params["reference_cmd"]
# Test if it is nic or block
pci_type = params["pci_type"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册