diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2023-10-06 18:41:15 +0300 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2023-10-12 14:21:43 -0400 |
commit | 684750ab4f8a3ad69512b71532408be3ac2547d4 (patch) | |
tree | 30f6b76726f7307b908c22db995653936e542b7a /tests/avocado/cpu_queries.py | |
parent | 37274707f6f3868fae7e0055d9a703006fc142d0 (diff) | |
download | qemu-684750ab4f8a3ad69512b71532408be3ac2547d4.zip qemu-684750ab4f8a3ad69512b71532408be3ac2547d4.tar.gz qemu-684750ab4f8a3ad69512b71532408be3ac2547d4.tar.bz2 |
python/qemu: rename command() to cmd()
Use a shorter name. We are going to move in iotests from qmp() to
command() where possible. But command() is longer than qmp() and don't
look better. Let's rename.
You can simply grep for '\.command(' and for 'def command(' to check
that everything is updated (command() in tests/docker/docker.py is
unrelated).
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: CĂ©dric Le Goater <clg@kaod.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-id: 20231006154125.1068348-6-vsementsov@yandex-team.ru
[vsementsov: also update three occurrences in
tests/avocado/machine_aspeed.py and keep r-b]
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/avocado/cpu_queries.py')
-rw-r--r-- | tests/avocado/cpu_queries.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/avocado/cpu_queries.py b/tests/avocado/cpu_queries.py index cf69f69..86c2d5c 100644 --- a/tests/avocado/cpu_queries.py +++ b/tests/avocado/cpu_queries.py @@ -23,12 +23,13 @@ class QueryCPUModelExpansion(QemuSystemTest): self.vm.add_args('-S') self.vm.launch() - cpus = self.vm.command('query-cpu-definitions') + cpus = self.vm.cmd('query-cpu-definitions') for c in cpus: self.log.info("Checking CPU: %s", c) self.assertNotIn('', c['unavailable-features'], c['name']) for c in cpus: model = {'name': c['name']} - e = self.vm.command('query-cpu-model-expansion', model=model, type='full') + e = self.vm.cmd('query-cpu-model-expansion', model=model, + type='full') self.assertEquals(e['model']['name'], c['name']) |