From 04a03a52a0051867a478a2028d00dd9a84c5e2ef Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Tue, 16 Jan 2024 11:45:51 -0800 Subject: [PATCH] Report as UNRESOLVED when exception is thrown in `execute` This won't solve the underlying problem causing the failure, but will hopefully provide enough info for us to analyze it. Addresses #4308 --- tests/utils/stl/test/format.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/utils/stl/test/format.py b/tests/utils/stl/test/format.py index d7e3798202f..042112cef10 100644 --- a/tests/utils/stl/test/format.py +++ b/tests/utils/stl/test/format.py @@ -247,7 +247,9 @@ def execute(self, test, litConfig): _, _, exception_traceback = sys.exc_info() filename = exception_traceback.tb_frame.f_code.co_filename line_number = exception_traceback.tb_lineno - litConfig.error(repr(e) + ' at ' + filename + ':' + str(line_number)) + message = repr(e) + ' at ' + filename + ':' + str(line_number) + litConfig.error(message) + return (lit.Test.UNRESOLVED, message) class LibcxxTestFormat(STLTestFormat):