提交 86a1446c 编写于 作者: F Feng Yang

qemu.tests.cdrom: Sort cdrom_dev_list

Signed-off-by: NFeng Yang <fyang@redhat.com>
上级 fd81d8f9
......@@ -80,7 +80,9 @@ def run(test, params, env):
list_cdrom_cmd = "ls /dev/cdrom*"
filter_cdrom_re = r"/dev/cdrom-\w+|/dev/cdrom\d*"
output = session.cmd_output(list_cdrom_cmd)
return re.findall(filter_cdrom_re, output)
cdroms = re.findall(filter_cdrom_re, output)
cdroms.sort()
return cdroms
def get_cdrom_mount_point(session, drive_letter, params):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册