aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/147
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/147
parentf7ccc3295b3d7c49d4a7a3d42242cd5b50111e35 (diff)
downloadqemu-d24eb059faf321fb552cf96a2a1e88e5651347c1.zip
qemu-d24eb059faf321fb552cf96a2a1e88e5651347c1.tar.gz
qemu-d24eb059faf321fb552cf96a2a1e88e5651347c1.tar.bz2
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/147')
-rwxr-xr-xtests/qemu-iotests/1473
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/147 b/tests/qemu-iotests/147
index 47dfa62..770b73e 100755
--- a/tests/qemu-iotests/147
+++ b/tests/qemu-iotests/147
@@ -159,10 +159,11 @@ class BuiltinNBD(NBDBlockdevAddBase):
if export_name is None:
result = self.server.qmp('nbd-server-add', device='nbd-export')
+ self.assert_qmp(result, 'return', {})
else:
result = self.server.qmp('nbd-server-add', device='nbd-export',
name=export_name)
- self.assert_qmp(result, 'return', {})
+ self.assert_qmp(result, 'return', {})
if export_name2 is not None:
result = self.server.qmp('nbd-server-add', device='nbd-export',