提交 fe8ced02 编写于 作者: W Wei,Jiangang

qemu/tests/pci_hotplug_check: fix wrong check condition

The return of utils_misc.find_substring() should be checked,
not the output of monitor.info() or monitor.human_monitor_cmd().
上级 3e918a34
......@@ -299,7 +299,7 @@ def run(test, params, env):
cmd_type = utils_misc.find_substring(str(cmd_output), "device_add",
"pci_add")
if not cmd_output:
if not cmd_type:
raise error.TestError("Could find a suitable method for hotplugging"
" device in this version of qemu")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册