提交 682de6d5 编写于 作者: Q Qingtang Zhou 提交者: Lucas Meneghel Rodrigues

qemu.tests: cdrom.py: Add sub test support

Signed-off-by: NQingtang Zhou <qzhou@redhat.com>
Acked-by: NFeng Yang <fyang@redhat.com>
上级 47748c6b
......@@ -373,6 +373,13 @@ def run_cdrom(test, params, env):
except aexpect.ShellError:
pass
sub_test = params.get("sub_test")
if sub_test:
error.context("Run sub test '%s' before doing file"
" operation" % sub_test, logging.info)
params["cdrom_cd1"] = os.path.basename(cdrom)
utils_test.run_virt_sub_test(test, params, env, sub_test)
error.context("Mounting the cdrom under /mnt")
self.session.cmd("mount %s %s" % (cdrom_dev, "/mnt"), timeout=30)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册