diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-05-08 18:10:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:51 +0200 |
commit | 62a9428812c0f4aacbf2f7fdf449fa4f4ab3775c (patch) | |
tree | a01be0fbc2edc337244e0dd33ccd85448d63287f /tests/qemu-iotests/155 | |
parent | 9f6bb4c004a6458227b9eec6aff3f79afe159699 (diff) |
iotests: Move qmp_to_opts() to VM
qmp_to_opts() used to be a method of QMPTestCase, but recently we
started to add more Python test cases that don't make use of
QMPTestCase. In order to make the method usable there, move it to VM.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/155')
-rwxr-xr-x | tests/qemu-iotests/155 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155 index 42dae04c83..63a5b5e2c0 100755 --- a/tests/qemu-iotests/155 +++ b/tests/qemu-iotests/155 @@ -63,7 +63,7 @@ class BaseClass(iotests.QMPTestCase): 'driver': iotests.imgfmt, 'file': {'driver': 'file', 'filename': source_img}} - self.vm.add_blockdev(self.qmp_to_opts(blockdev)) + self.vm.add_blockdev(self.vm.qmp_to_opts(blockdev)) self.vm.add_device('virtio-blk,id=qdev0,drive=source') self.vm.launch() |