]> git.proxmox.com Git - mirror_qemu.git/commit
scripts: add python_qmp_updater.py
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Fri, 6 Oct 2023 15:41:24 +0000 (18:41 +0300)
committerJohn Snow <jsnow@redhat.com>
Thu, 12 Oct 2023 18:21:44 +0000 (14:21 -0400)
commit25ad2cf6500db3b7f2d88de448791183d7614097
treeb346720b11764fdbb7900c53443997ebfbd64fbf
parent9acd49e29e5a3e388c0de0501e1308b507fd1fc4
scripts: add python_qmp_updater.py

A script, to update the pattern

    result = self.vm.qmp(...)
    self.assert_qmp(result, 'return', {})

(and some similar ones) into

    self.vm.cmd(...)

Used in the next commit
    "python: use vm.cmd() instead of vm.qmp() where appropriate"

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20231006154125.1068348-15-vsementsov@yandex-team.ru
Signed-off-by: John Snow <jsnow@redhat.com>
scripts/python_qmp_updater.py [new file with mode: 0755]