aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/211
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qemu-iotests/211')
-rwxr-xr-xtests/qemu-iotests/21112
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/qemu-iotests/211 b/tests/qemu-iotests/211
index 6afc894..8834ebf 100755
--- a/tests/qemu-iotests/211
+++ b/tests/qemu-iotests/211
@@ -27,15 +27,9 @@ iotests.verify_image_format(supported_fmts=['vdi'])
iotests.verify_protocol(supported=['file'])
def blockdev_create(vm, options):
- result = vm.qmp_log('blockdev-create', job_id='job0', options=options,
- filters=[iotests.filter_qmp_testfiles])
-
- if 'return' in result:
- assert result['return'] == {}
- error = vm.run_job('job0')
- if error and 'Could not allocate bmap' in error:
- iotests.notrun('Insufficient memory')
- iotests.log("")
+ error = vm.blockdev_create(options)
+ if error and 'Could not allocate bmap' in error:
+ iotests.notrun('Insufficient memory')
with iotests.FilePath('t.vdi') as disk_path, \
iotests.VM() as vm: