提交 14f314cf 编写于 作者: L Lukáš Doktor 提交者: Lucas Meneghel Rodrigues

qemu.tests.multi_disk_random_hotplug: Force strict_mode in parallel mode

Parallel mode of this test doesn't keep order of inserted devices, which
leads to devices ending up in different buses. Setting strict_mode = True
always enforces bus and addr.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 44b2def3
......@@ -127,6 +127,10 @@ def run(test, params, env):
_new_devs_fmt = ""
_formats = param_matrix.pop('fmt', [params.get('drive_format')])
formats = _formats[:]
if len(new_devices) == 1:
strict_mode = None
else:
strict_mode = True
i = 0
while i < no_disks:
# Set the format
......@@ -158,8 +162,8 @@ def run(test, params, env):
try:
devs = qdev.images_define_by_variables(**args)
for dev in devs:
qdev.insert(dev)
# parallel test adds devices in mixed order, force bus/addrs
qdev.insert(devs, strict_mode)
except utils.DeviceError:
for dev in devs:
if dev in qdev:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册