Skip to content

Commit 4f72c47

Browse files
committed
test: show full error message on test failure
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.
1 parent f6f5c85 commit 4f72c47

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

toolchain/mfc/test/test.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -611,11 +611,7 @@ def handle_case(case: TestCase, devices: typing.Set[int]):
611611
cons.print(f" UUID: [magenta]{case.get_uuid()}[/magenta]")
612612
cons.print(f" Attempts: {nAttempts}")
613613

614-
# Show truncated error message
615-
exc_str = str(exc)
616-
if len(exc_str) > 300:
617-
exc_str = exc_str[:297] + "..."
618-
cons.print(f" Error: {exc_str}")
614+
cons.print(f" Error: {exc}")
619615

620616
# Provide helpful hints based on error type
621617
exc_lower = str(exc).lower()

0 commit comments

Comments
 (0)