summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/qemurunner.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-04 13:34:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-04 23:05:54 +0100
commitce804a67979bd618b2d9c08fbaed7819597b3e9f (patch)
treeda8737c41c9d44d8d0b7c293a9852ac4f93abffd /meta/lib/oeqa/utils/qemurunner.py
parentaaaa314807347d2a87cc80d29f41a547d7368ad7 (diff)
downloadpoky-ce804a67979bd618b2d9c08fbaed7819597b3e9f.tar.gz
qemurunner: Show both the login console log and all logging upon failure
It is unclear when things fail which output was on which serial port. Improve the output to show the last lines of both data to improve debugging. (From OE-Core rev: 605938b3bb19dcf6c7218648b4d16df9eaa675fc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index ea867a2934..9aa2e7b3be 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -503,9 +503,8 @@ class QemuRunner:
503 (self.boottime, time.strftime("%D %H:%M:%S"))) 503 (self.boottime, time.strftime("%D %H:%M:%S")))
504 tail = lambda l: "\n".join(l.splitlines()[-25:]) 504 tail = lambda l: "\n".join(l.splitlines()[-25:])
505 bootlog = self.decode_qemulog(bootlog) 505 bootlog = self.decode_qemulog(bootlog)
506 # in case bootlog is empty, use tail qemu log store at self.msg 506 self.logger.warning("Last 25 lines of login console (%d):\n%s" % (len(bootlog), tail(bootlog)))
507 lines = tail(bootlog if bootlog else self.msg) 507 self.logger.warning("Last 25 lines of all logging (%d):\n%s" % (len(self.msg), tail(self.msg)))
508 self.logger.warning("Last 25 lines of text (%d):\n%s" % (len(bootlog), lines))
509 self.logger.warning("Check full boot log: %s" % self.logfile) 508 self.logger.warning("Check full boot log: %s" % self.logfile)
510 self.stop() 509 self.stop()
511 return False 510 return False