提交 42c9e71e 编写于 作者: F Feng Yang

qemu.tests.pci_hotplug: Add default value for queues parameter

This patch have us fix "TypeError: int() argument must be a string or a number,
not 'NoneType'" error when queues parameter not set in config.
Signed-off-by: NFeng Yang <fyang@redhat.com>
上级 9d7c1ece
......@@ -275,7 +275,7 @@ def run_pci_hotplug(test, params, env):
local_functions = locals()
pci_num_range = int(params.get("pci_num"))
queues = int(params.get("queues"))
queues = int(params.get("queues", 1))
rp_times = int(params.get("repeat_times"))
img_list = params.get("images").split()
context_msg = "Running sub test '%s' %s"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册