summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2022-09-09 09:33:01 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-16 17:53:23 +0100
commitbaae7384098be895a11a382674ddf28908f850b2 (patch)
treea7f021046c462c9592d684c14ad6097cbcb73a70 /meta
parent5ae57d4c9b1faa744d0a9bef0f2310d48d0bf0f1 (diff)
downloadpoky-baae7384098be895a11a382674ddf28908f850b2.tar.gz
oeqa: qemurunner: Report UNIX Epoch timestamp on login
Updates the log message printed when login banner is seen in QEMU to report the UNIX Epoch time in addition to the human readable time. This makes it much easier and accurate to correlate logs with the guest, in particular with the guest journalctl which prints log timestamps in human readable format and the oeqa SSH debug logging which prints the UNIX Epoch. (From OE-Core rev: 2a860de611bebae2e1100380b975b7648b8560d9) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 275b6f3c8d0eeafa3902c48a49655491a89c47bc) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 4c3d2010fb..c19164e6e7 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -471,9 +471,9 @@ class QemuRunner:
471 self.server_socket = qemusock 471 self.server_socket = qemusock
472 stopread = True 472 stopread = True
473 reachedlogin = True 473 reachedlogin = True
474 self.logger.debug("Reached login banner in %s seconds (%s)" % 474 self.logger.debug("Reached login banner in %s seconds (%s, %s)" %
475 (time.time() - (endtime - self.boottime), 475 (time.time() - (endtime - self.boottime),
476 time.strftime("%D %H:%M:%S"))) 476 time.strftime("%D %H:%M:%S"), time.time()))
477 else: 477 else:
478 # no need to check if reachedlogin unless we support multiple connections 478 # no need to check if reachedlogin unless we support multiple connections
479 self.logger.debug("QEMU socket disconnected before login banner reached. (%s)" % 479 self.logger.debug("QEMU socket disconnected before login banner reached. (%s)" %