* [PATCH 0/2] Python: minor fixes
@ 2022-01-18 0:00 John Snow
2022-01-18 0:00 ` [PATCH 1/2] python/aqmp: Fix negotiation with pre-"oob" QEMU John Snow
2022-01-18 0:00 ` [PATCH 2/2] python: use avocado's "new" runner John Snow
0 siblings, 2 replies; 3+ messages in thread
From: John Snow @ 2022-01-18 0:00 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Peter Maydell, Beraldo Leal, Markus Armbruster,
Cleber Rosa, John Snow
GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-aqmp-fixes
CI: https://gitlab.com/jsnow/qemu/-/pipelines/449959282
Fix a bug in async QMP, and fix a minor test annoyance.
John Snow (2):
python/aqmp: Fix negotiation with pre-"oob" QEMU
python: use avocado's "new" runner
python/avocado.cfg | 2 +-
python/qemu/aqmp/qmp_client.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--
2.31.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] python/aqmp: Fix negotiation with pre-"oob" QEMU
2022-01-18 0:00 [PATCH 0/2] Python: minor fixes John Snow
@ 2022-01-18 0:00 ` John Snow
2022-01-18 0:00 ` [PATCH 2/2] python: use avocado's "new" runner John Snow
1 sibling, 0 replies; 3+ messages in thread
From: John Snow @ 2022-01-18 0:00 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Peter Maydell, Beraldo Leal, Markus Armbruster,
Cleber Rosa, John Snow
QEMU versions prior to the "oob" capability *also* can't accept the
"enable" keyword argument at all. Fix the handshake process with older
QEMU versions.
Signed-off-by: John Snow <jsnow@redhat.com>
---
python/qemu/aqmp/qmp_client.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/qemu/aqmp/qmp_client.py b/python/qemu/aqmp/qmp_client.py
index 8105e29fa8..6b43e1dbbe 100644
--- a/python/qemu/aqmp/qmp_client.py
+++ b/python/qemu/aqmp/qmp_client.py
@@ -292,9 +292,9 @@ async def _negotiate(self) -> None:
"""
self.logger.debug("Negotiating capabilities ...")
- arguments: Dict[str, List[str]] = {'enable': []}
+ arguments: Dict[str, List[str]] = {}
if self._greeting and 'oob' in self._greeting.QMP.capabilities:
- arguments['enable'].append('oob')
+ arguments.setdefault('enable', []).append('oob')
msg = self.make_execute_msg('qmp_capabilities', arguments=arguments)
# It's not safe to use execute() here, because the reader/writers
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] python: use avocado's "new" runner
2022-01-18 0:00 [PATCH 0/2] Python: minor fixes John Snow
2022-01-18 0:00 ` [PATCH 1/2] python/aqmp: Fix negotiation with pre-"oob" QEMU John Snow
@ 2022-01-18 0:00 ` John Snow
1 sibling, 0 replies; 3+ messages in thread
From: John Snow @ 2022-01-18 0:00 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Peter Maydell, Beraldo Leal, Markus Armbruster,
Cleber Rosa, John Snow
The old legacy runner no longer seems to work with output logging, so we
can't see failure logs when a test case fails. The new runner doesn't
(seem to) support Coverage.py yet, but seeing error output is a more
important feature.
Signed-off-by: John Snow <jsnow@redhat.com>
---
python/avocado.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/avocado.cfg b/python/avocado.cfg
index c7722e7ecd..a460420059 100644
--- a/python/avocado.cfg
+++ b/python/avocado.cfg
@@ -1,5 +1,5 @@
[run]
-test_runner = runner
+test_runner = nrunner
[simpletests]
# Don't show stdout/stderr in the test *summary*
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-18 0:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 0:00 [PATCH 0/2] Python: minor fixes John Snow
2022-01-18 0:00 ` [PATCH 1/2] python/aqmp: Fix negotiation with pre-"oob" QEMU John Snow
2022-01-18 0:00 ` [PATCH 2/2] python: use avocado's "new" runner John Snow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).