From 4f72c471d3f8344e322fc5ae2ad192666cfff7e6 Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Thu, 9 Apr 2026 16:19:09 -0400 Subject: [PATCH] test: show full error message on test failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove 300-character truncation of exception messages in the test runner. The limit was cutting off valuable diagnostic info — e.g. the tolerance's rel: value — making failures harder to diagnose. --- toolchain/mfc/test/test.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/toolchain/mfc/test/test.py b/toolchain/mfc/test/test.py index 56cb9ff5ed..5e0d90d244 100644 --- a/toolchain/mfc/test/test.py +++ b/toolchain/mfc/test/test.py @@ -611,11 +611,7 @@ def handle_case(case: TestCase, devices: typing.Set[int]): cons.print(f" UUID: [magenta]{case.get_uuid()}[/magenta]") cons.print(f" Attempts: {nAttempts}") - # Show truncated error message - exc_str = str(exc) - if len(exc_str) > 300: - exc_str = exc_str[:297] + "..." - cons.print(f" Error: {exc_str}") + cons.print(f" Error: {exc}") # Provide helpful hints based on error type exc_lower = str(exc).lower()