From 00cde20a9abce366dad1087379a306fe81ceaf72 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 18 Mar 2022 16:54:19 +0000 Subject: [PATCH] arm/oeqa/fvp: show more log from the FVP on failure If the FVP fails to boot, the last 20 lines may just be a stack trace. Show the last 200 lines for further context. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/lib/oeqa/controllers/fvp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta-arm/lib/oeqa/controllers/fvp.py b/meta-arm/lib/oeqa/controllers/fvp.py index 29ccae5f..7136a003 100644 --- a/meta-arm/lib/oeqa/controllers/fvp.py +++ b/meta-arm/lib/oeqa/controllers/fvp.py @@ -63,7 +63,8 @@ class OEFVPTarget(oeqa.core.target.ssh.OESSHTarget): return except asyncio.TimeoutError: self.logger.info("Timed out waiting for login prompt.") - self.logger.info(b"\n".join(bootlog.splitlines()[-20:]).decode("utf-8", errors="replace")) + self.logger.info("Boot log follows:") + self.logger.info(b"\n".join(bootlog.splitlines()[-200:]).decode("utf-8", errors="replace")) raise RuntimeError("Failed to start FVP.") def start(self, **kwargs):