* [PATCH] oeqa/qemurunner: Add extra logging when console doesn't appear
@ 2023-10-10 8:53 Richard Purdie
2023-10-10 9:15 ` [OE-core] " Mikko Rapeli
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2023-10-10 8:53 UTC (permalink / raw)
To: openembedded-core
If the console doesn't appear, breifly sleep and try an extra read. This
is a useful debugging trick which we may as well preserve in the code. We're
already failing at this point so extra data is useful.
This means if we perturb things on the other port, we may gain useful logging
insight.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/lib/oeqa/utils/qemurunner.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 574696eb7e3..cb3231da63b 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -519,6 +519,16 @@ class QemuRunner:
self.logger.warning("Last 25 lines of all logging (%d):\n%s" % (len(self.msg), tail(self.msg)))
self.logger.warning("Check full boot log: %s" % self.logfile)
self.stop()
+ data = True
+ while data:
+ try:
+ time.sleep(1)
+ data = qemusock.recv(1024)
+ self.log(data, extension = ".2")
+ self.logger.warning('Extra log data read: %s\n' % (data.decode('utf-8', errors='backslashreplace')))
+ except Exception as e:
+ self.logger.warning('Extra log data exception %s' % repr(e))
+ data = None
return False
# If we are not able to login the tests can continue
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [OE-core] [PATCH] oeqa/qemurunner: Add extra logging when console doesn't appear
2023-10-10 8:53 [PATCH] oeqa/qemurunner: Add extra logging when console doesn't appear Richard Purdie
@ 2023-10-10 9:15 ` Mikko Rapeli
0 siblings, 0 replies; 2+ messages in thread
From: Mikko Rapeli @ 2023-10-10 9:15 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
Reviewed-by: Mikko Rapeli <mikko.rapeli@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-10 9:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-10 8:53 [PATCH] oeqa/qemurunner: Add extra logging when console doesn't appear Richard Purdie
2023-10-10 9:15 ` [OE-core] " Mikko Rapeli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.