diff options
author | Kevin Wolf | 2018-05-08 18:10:16 +0200 |
---|---|---|
committer | Kevin Wolf | 2018-05-23 14:30:51 +0200 |
commit | 62a9428812c0f4aacbf2f7fdf449fa4f4ab3775c (patch) | |
tree | a01be0fbc2edc337244e0dd33ccd85448d63287f /tests/qemu-iotests/041 | |
parent | blockjob: Remove BlockJob.driver (diff) | |
download | qemu-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-x | tests/qemu-iotests/041 | 6 |
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): |