提交 25f46c4f 编写于 作者: L Lukáš Doktor

qemu.tests.multi_disk_random_hotplug: Put images_define in try/catch

The qdev.images_define_by_variables needs to be in the try/except
block in order to work as expected (remove format and try another round)
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 83871ff3
......@@ -149,11 +149,11 @@ def run(test, params, env):
for key, value in param_matrix.iteritems():
args[key] = random.choice(value)
devs = qdev.images_define_by_variables(**args)
try:
devs = qdev.images_define_by_variables(**args)
for dev in devs:
qdev.insert(dev)
except utils.DeviceInsertError:
except utils.DeviceError:
# All buses are full, (TODO add bus) or remove this format
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.
先完成此消息的编辑!
想要评论请 注册