[1/4] arm/oeqa/fvp: show more log from the FVP on failure

Message ID 20220318165422.1711512-1-ross.burton@arm.com
State New
Headers show
Series [1/4] arm/oeqa/fvp: show more log from the FVP on failure | expand

Commit Message

Ross Burton March 18, 2022, 4:54 p.m. UTC
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 <ross.burton@arm.com>
---
 meta-arm/lib/oeqa/controllers/fvp.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jon Mason March 23, 2022, 1:31 p.m. UTC | #1
On Fri, 18 Mar 2022 16:54:19 +0000, Ross Burton wrote:
> If the FVP fails to boot, the last 20 lines may just be a stack trace.
> Show the last 200 lines for further context.

Applied, thanks!

[1/4] arm/oeqa/fvp: show more log from the FVP on failure
      commit: 00cde20a9abce366dad1087379a306fe81ceaf72
[2/4] arm-bsp/fvp-base: consolidate FVP configuration
      commit: 583b68cc90380c452278f90feb93409f186dec8d
[3/4] arm-bsp/fvp-base: configure the FVP with v8.4 cores
      commit: f56e69e1356851db19a62a291b24488f73abc443
[4/4] arm-bsp/u-boot: use latest u-boot for fvp-base
      commit: bff49b6a351b2a142cb12cfc97de563ed337ec20

Best regards,

Patch

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):