1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

oeqa/utils/qemurunner: Fix typo in previous commit

(From OE-Core rev: 909baeb5901f7f212fbdd6c358c5ada6fe25e091)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2019-04-09 16:04:04 +01:00
parent a01c029898
commit bb3a8929c7
+1 -1
View File
@@ -320,7 +320,7 @@ class QemuRunner:
self.logger.debug("Target didn't reach login banner in %d seconds (%s)" % self.logger.debug("Target didn't reach login banner in %d seconds (%s)" %
(self.boottime, time.strftime("%D %H:%M:%S"))) (self.boottime, time.strftime("%D %H:%M:%S")))
tail = lambda l: "\n".join(l.splitlines()[-25:]) tail = lambda l: "\n".join(l.splitlines()[-25:])
bootlog = boolog.decode("utf-8") bootlog = bootlog.decode("utf-8")
# in case bootlog is empty, use tail qemu log store at self.msg # in case bootlog is empty, use tail qemu log store at self.msg
lines = tail(bootlog if bootlog else self.msg) lines = tail(bootlog if bootlog else self.msg)
self.logger.debug("Last 25 lines of text:\n%s" % lines) self.logger.debug("Last 25 lines of text:\n%s" % lines)