From d871c454daef2d48598ea553f5541377e1d09700 Mon Sep 17 00:00:00 2001 From: Baihua Lu Date: Mon, 9 Dec 2024 11:38:27 +0800 Subject: [PATCH] Add more information in panic msg --- lisa/util/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisa/util/__init__.py b/lisa/util/__init__.py index 950e1feb1b..d590e8cc92 100644 --- a/lisa/util/__init__.py +++ b/lisa/util/__init__.py @@ -328,7 +328,12 @@ def __init__( self.source = source def __str__(self) -> str: - return f"{self.stage} found panic in {self.source}: {self.panics}" + return ( + f"{self.stage} found panic in {self.source}. You can check the panic " + "details from the serial console log. Please download the test logs and " + "retrieve the serial_log from 'environments' directory, or you can ask " + f"support. Detected Panic phrases: {self.panics}" + ) class RequireUserPasswordException(LisaException):