summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/qemurunner.py
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-12 08:33:55 +0100
commitf6b6a33afb9df8c6df32c1586b36fe4b5b9f9581 (patch)
tree3e77da85aa97fe0ab38dcc6fc73b68510670b05d /meta/lib/oeqa/utils/qemurunner.py
parent842a5d95873a773644c01e5fddddff66cc7a60ae (diff)
downloadpoky-f6b6a33afb9df8c6df32c1586b36fe4b5b9f9581.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: 275b6f3c8d0eeafa3902c48a49655491a89c47bc) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> 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.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 07018b7de8..948f8adc9f 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -472,9 +472,9 @@ class QemuRunner:
472 self.server_socket = qemusock 472 self.server_socket = qemusock
473 stopread = True 473 stopread = True
474 reachedlogin = True 474 reachedlogin = True
475 self.logger.debug("Reached login banner in %s seconds (%s)" % 475 self.logger.debug("Reached login banner in %s seconds (%s, %s)" %
476 (time.time() - (endtime - self.boottime), 476 (time.time() - (endtime - self.boottime),
477 time.strftime("%D %H:%M:%S"))) 477 time.strftime("%D %H:%M:%S"), time.time()))
478 else: 478 else:
479 # no need to check if reachedlogin unless we support multiple connections 479 # no need to check if reachedlogin unless we support multiple connections
480 self.logger.debug("QEMU socket disconnected before login banner reached. (%s)" % 480 self.logger.debug("QEMU socket disconnected before login banner reached. (%s)" %