提交 0a939385 编写于 作者: Y Yiqiao Pu

qemu.tests: Add force eject cmd when qmp monitor is used

The old code will use the old cmd from cdrom eject test which
used the wrong device for this test.
Signed-off-by: NYiqiao Pu <ypu@redhat.com>
上级 cca50128
......@@ -91,6 +91,8 @@ def run(test, params, env):
if params.get("force_eject", "no") == "yes":
if not qmp_used:
eject_cmd = "eject -f %s " % device_name
else:
eject_cmd = "eject device=%s, force=True" % device_name
else:
eject_cmd = "eject device=%s," % device_name
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册