From d9e34d68f8cfa38549e78ba0a6de8a8551869681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Mu=C3=B1oz?= Date: Thu, 14 Mar 2024 15:57:21 -0700 Subject: [PATCH] Capture and log exceptions when there is an error reading serial console logs --- lisa/testsuite.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisa/testsuite.py b/lisa/testsuite.py index 332a84c6a1..8998bc6cf1 100644 --- a/lisa/testsuite.py +++ b/lisa/testsuite.py @@ -667,7 +667,12 @@ def start( ) if case_result.status == TestStatus.FAILED: - self.__save_serial_log(environment, case_log_path) + try: + self.__save_serial_log(environment, case_log_path) + except Exception as e: + suite_log.debug( + f"exception thrown during serial console log read. [{e}]" + ) case_log.info( f"result: {case_result.status.name}, " f"elapsed: {total_timer}"