提交 37363555 编写于 作者: X Xu Tian

qemu.tests.multi_disk_random_hotplug: fix syntax

Signed-off-by: NXu Tian <xutian@redhat.com>
上级 49f4c20f
......@@ -135,6 +135,7 @@ def run(test, params, env):
"""
dev_idx = 0
_new_devs_fmt = ""
pci_bus = {'aobject': 'pci.0'}
_formats = param_matrix.pop('fmt', [params.get('drive_format')])
formats = _formats[:]
if len(new_devices) == 1:
......@@ -153,7 +154,7 @@ def run(test, params, env):
_formats, i)
break
name = 'stg%d' % i
args = {'name': name, 'filename': stg_image_name % i}
args = {'name': name, 'filename': stg_image_name % i, 'pci_bus': pci_bus}
fmt = random.choice(formats)
if fmt == 'virtio_scsi':
args['fmt'] = 'scsi-hd'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册