summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/041
diff options
context:
space:
mode:
authorKevin Wolf2018-05-08 18:10:16 +0200
committerKevin Wolf2018-05-23 14:30:51 +0200
commit62a9428812c0f4aacbf2f7fdf449fa4f4ab3775c (patch)
treea01be0fbc2edc337244e0dd33ccd85448d63287f /tests/qemu-iotests/041
parentblockjob: Remove BlockJob.driver (diff)
downloadqemu-62a9428812c0f4aacbf2f7fdf449fa4f4ab3775c.tar.gz
qemu-62a9428812c0f4aacbf2f7fdf449fa4f4ab3775c.tar.xz
qemu-62a9428812c0f4aacbf2f7fdf449fa4f4ab3775c.zip
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/041')
-rwxr-xr-xtests/qemu-iotests/0416
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041
index e94587950c..c20ac7da87 100755
--- a/tests/qemu-iotests/041
+++ b/tests/qemu-iotests/041
@@ -1030,9 +1030,9 @@ class TestOrphanedSource(iotests.QMPTestCase):
'read-only': 'on' }
self.vm = iotests.VM()
- self.vm.add_blockdev(self.qmp_to_opts(blk0))
- self.vm.add_blockdev(self.qmp_to_opts(blk1))
- self.vm.add_blockdev(self.qmp_to_opts(blk2))
+ self.vm.add_blockdev(self.vm.qmp_to_opts(blk0))
+ self.vm.add_blockdev(self.vm.qmp_to_opts(blk1))
+ self.vm.add_blockdev(self.vm.qmp_to_opts(blk2))
self.vm.launch()
def tearDown(self):