aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/155
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2023-10-06 18:41:19 +0300
committerJohn Snow <jsnow@redhat.com>2023-10-12 14:21:44 -0400
commitd24eb059faf321fb552cf96a2a1e88e5651347c1 (patch)
tree3025b4d3b7b4c9bd0fd6fe4022fa8c4a01a64888 /tests/qemu-iotests/155
parentf7ccc3295b3d7c49d4a7a3d42242cd5b50111e35 (diff)
iotests: refactor some common qmp result checks into generic pattern
To simplify further conversion. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20231006154125.1068348-10-vsementsov@yandex-team.ru Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/155')
-rwxr-xr-xtests/qemu-iotests/1554
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155
index eadda52615..d3e1b7401e 100755
--- a/tests/qemu-iotests/155
+++ b/tests/qemu-iotests/155
@@ -181,6 +181,7 @@ class MirrorBaseClass(BaseClass):
result = self.vm.qmp(self.cmd, job_id='mirror-job', device='source',
sync=sync, target='target',
auto_finalize=False)
+ self.assert_qmp(result, 'return', {})
else:
if self.existing:
mode = 'existing'
@@ -190,8 +191,7 @@ class MirrorBaseClass(BaseClass):
sync=sync, target=target_img,
format=iotests.imgfmt, mode=mode,
node_name='target', auto_finalize=False)
-
- self.assert_qmp(result, 'return', {})
+ self.assert_qmp(result, 'return', {})
self.vm.run_job('mirror-job', auto_finalize=False,
pre_finalize=self.openBacking, auto_dismiss=True)