Skip to content

Commit

Permalink
Capture and log exceptions when there is an error reading serial cons…
Browse files Browse the repository at this point in the history
…ole logs
  • Loading branch information
frmunozp authored and LiliDeng committed Mar 15, 2024
1 parent 5a8b8ed commit d9e34d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lisa/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit d9e34d6

Please sign in to comment.