summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/207
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-12-16 18:02:08 +0100
committerKevin Wolf <kwolf@redhat.com>2019-12-19 14:32:43 +0100
commit6055cdf3d9736ebb2971dc3e243fa5facdd415ee (patch)
treecf1d36cfdc54d4907011ae1022d188d499538511 /tests/qemu-iotests/207
parentde1ff674a0f56e97d944ba66a8bbc89e2769d8c1 (diff)
downloadqemu-6055cdf3d9736ebb2971dc3e243fa5facdd415ee.zip
iotests: 207: Remove duplication with VM.blockdev_create()
The blockdev_create() function in this test case adds another filter to the logging, but provides otherwise the same functionality as VM.blockdev_create() from iotests.py. Make it a thin wrapper around the iotests.py function. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/207')
-rwxr-xr-xtests/qemu-iotests/2078
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/qemu-iotests/207 b/tests/qemu-iotests/207
index ec8c1d06f0..812ab34e47 100755
--- a/tests/qemu-iotests/207
+++ b/tests/qemu-iotests/207
@@ -35,13 +35,7 @@ def filter_hash(qmsg):
return iotests.filter_qmp(qmsg, _filter)
def blockdev_create(vm, options):
- result = vm.qmp_log('blockdev-create', job_id='job0', options=options,
- filters=[iotests.filter_qmp_testfiles, filter_hash])
-
- if 'return' in result:
- assert result['return'] == {}
- vm.run_job('job0')
- iotests.log("")
+ vm.blockdev_create(options, filters=[iotests.filter_qmp_testfiles, filter_hash])
with iotests.FilePath('t.img') as disk_path, \
iotests.VM() as vm: