diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2023-10-06 18:41:19 +0300 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2023-10-12 14:21:44 -0400 |
commit | d24eb059faf321fb552cf96a2a1e88e5651347c1 (patch) | |
tree | 3025b4d3b7b4c9bd0fd6fe4022fa8c4a01a64888 /tests/qemu-iotests/147 | |
parent | f7ccc3295b3d7c49d4a7a3d42242cd5b50111e35 (diff) | |
download | qemu-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-x | tests/qemu-iotests/147 | 3 |
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', |