From: Emanuele Giuseppe Esposito <eesposit@redhat.com>
To: qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Emanuele Giuseppe Esposito <eesposit@redhat.com>,
Eduardo Habkost <ehabkost@redhat.com>,
qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>,
Cleber Rosa <crosa@redhat.com>, John Snow <jsnow@redhat.com>
Subject: [RFC PATCH 1/3] python: qemu: add timer parameter for qmp.accept socket
Date: Thu, 1 Apr 2021 15:57:31 +0200 [thread overview]
Message-ID: <20210401135733.32177-2-eesposit@redhat.com> (raw)
In-Reply-To: <20210401135733.32177-1-eesposit@redhat.com>
Extend the _post_launch function to include the timer as
parameter instead of defaulting to 15 sec.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
---
python/qemu/machine.py | 4 ++--
python/qemu/qtest.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/python/qemu/machine.py b/python/qemu/machine.py
index 6e44bda337..c721e07d63 100644
--- a/python/qemu/machine.py
+++ b/python/qemu/machine.py
@@ -321,9 +321,9 @@ def _pre_launch(self) -> None:
nickname=self._name
)
- def _post_launch(self) -> None:
+ def _post_launch(self, timer) -> None:
if self._qmp_connection:
- self._qmp.accept()
+ self._qmp.accept(timer)
def _post_shutdown(self) -> None:
"""
diff --git a/python/qemu/qtest.py b/python/qemu/qtest.py
index 39a0cf62fe..0d01715086 100644
--- a/python/qemu/qtest.py
+++ b/python/qemu/qtest.py
@@ -138,9 +138,9 @@ def _pre_launch(self) -> None:
super()._pre_launch()
self._qtest = QEMUQtestProtocol(self._qtest_path, server=True)
- def _post_launch(self) -> None:
+ def _post_launch(self, timer) -> None:
assert self._qtest is not None
- super()._post_launch()
+ super()._post_launch(timer)
self._qtest.accept()
def _post_shutdown(self) -> None:
--
2.30.2
next prev parent reply other threads:[~2021-04-01 13:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-01 13:57 [RFC PATCH 0/3] qemu-iotests: attach gdbserver to qemu instance Emanuele Giuseppe Esposito
2021-04-01 13:57 ` Emanuele Giuseppe Esposito [this message]
2021-04-01 13:57 ` [RFC PATCH 2/3] qemu-iotests: add option to attach gdbserver Emanuele Giuseppe Esposito
2021-04-01 13:57 ` [RFC PATCH 3/3] qemu-iotests: add gdbserver option to script tests too Emanuele Giuseppe Esposito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210401135733.32177-2-eesposit@redhat.com \
--to=eesposit@redhat.com \
--cc=crosa@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).