提交 2d6e2704 编写于 作者: C Cong 提交者: GitHub

Merge pull request #786 from CongLi/nic_hotplug

qemu.tests.pci_hotplug: Add default value of "wait_secs_for_hook_up".
......@@ -64,3 +64,4 @@
run_dhclient = no
pci_num = 1
repeat_times = 100
wait_secs_for_hook_up = 3
......@@ -225,7 +225,7 @@ def run(test, params, env):
raise error.TestFail("No new PCI device shown after executing "
"monitor command: 'info pci'")
secs = int(params.get("wait_secs_for_hook_up"))
secs = int(params.get("wait_secs_for_hook_up", 3))
if not utils_misc.wait_for(_new_shown, test_timeout, secs, 3):
raise error.TestFail("No new device shown in output of command "
"executed inside the guest: %s" %
......
......@@ -230,7 +230,7 @@ def run(test, params, env):
raise error.TestFail("No new PCI device shown after "
"executing monitor command: 'info pci'")
secs = int(params.get("wait_secs_for_hook_up"))
secs = int(params.get("wait_secs_for_hook_up", 3))
if not utils_misc.wait_for(_new_shown, test_timeout, secs, 3):
raise error.TestFail("No new device shown in output of" +
"command executed inside the " +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册