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/296 | |
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/296')
-rwxr-xr-x | tests/qemu-iotests/296 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemu-iotests/296 b/tests/qemu-iotests/296 index 0d21b74..19a674c 100755 --- a/tests/qemu-iotests/296 +++ b/tests/qemu-iotests/296 @@ -133,9 +133,10 @@ class EncryptionSetupTestCase(iotests.QMPTestCase): if reOpen: result = vm.qmp(command, options=[opts]) + self.assert_qmp(result, 'return', {}) else: result = vm.qmp(command, **opts) - self.assert_qmp(result, 'return', {}) + self.assert_qmp(result, 'return', {}) ########################################################################### |