未验证 提交 94a46dbf 编写于 作者: Y Yanan Fu 提交者: GitHub

Merge pull request #2196 from yiqianwei/bz1823311

qmp_command:add command "query-target"
......@@ -183,3 +183,6 @@
qmp_cmd = "query-command-line-options"
cmd_result_check = contain
cmd_return_value = "[{'option': 'option-rom'}, {'name': 'bootindex'}, {'name': 'romfile'}]"
- qmp_query-target:
qmp_cmd = "query-target"
cmd_result_check = equal
......@@ -245,6 +245,11 @@ def run(test, params, env):
image_info['qdev'] = image
image_info['format'] = image_format
expect_o.append(image_info)
elif qmp_cmd == "query-target":
host_arch = platform.machine()
if host_arch == "ppc64le":
host_arch = host_arch[:5]
expect_o = [{"arch": host_arch}]
check_result(qmp_o, expect_o)
elif result_check.startswith("post_"):
logging.info("Verify post qmp command '%s' works as designed." % post_cmd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册