mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
iotests: drop some extra ** in qmp() call
qmp() method supports passing dict (if it doesn't need substituting '_' to '-' in keys). So, drop some extra '**' operators. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20231006154125.1068348-12-vsementsov@yandex-team.ru Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
1ada73fbea
commit
c5339030e6
10 changed files with 54 additions and 56 deletions
|
@ -102,8 +102,7 @@ class EncryptionSetupTestCase(iotests.QMPTestCase):
|
|||
}
|
||||
}
|
||||
|
||||
result = self.vm.qmp('blockdev-add', **
|
||||
{
|
||||
result = self.vm.qmp('blockdev-add', {
|
||||
'driver': iotests.imgfmt,
|
||||
'node-name': id,
|
||||
'read-only': read_only,
|
||||
|
@ -120,7 +119,7 @@ class EncryptionSetupTestCase(iotests.QMPTestCase):
|
|||
|
||||
# close the encrypted block device
|
||||
def closeImageQmp(self, id):
|
||||
result = self.vm.qmp('blockdev-del', **{ 'node-name': id })
|
||||
result = self.vm.qmp('blockdev-del', {'node-name': id})
|
||||
self.assert_qmp(result, 'return', {})
|
||||
|
||||
###########################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue