Skip to content

Commit 8c01b99

Browse files
committed
lint error
1 parent e8090bd commit 8c01b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain/mfc/test/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ def _handle_case(case: TestCase, devices: typing.Set[int]):
291291
progress_str = f"({current_test_number:3d}/{total_test_count:3d})"
292292
cons.print(f" {progress_str} [bold magenta]{case.get_uuid()}[/bold magenta] {duration:6.2f} {case.trace}")
293293

294-
except TestTimeoutError:
294+
except TestTimeoutError as exc:
295295
raise MFCException(
296296
f"Test {case} exceeded 1 hour timeout. "
297297
f"This may indicate a hung simulation or misconfigured case. "
298298
f"Check the log at: {os.path.join(case.get_dirpath(), 'out_pre_sim.txt')}"
299-
)
299+
) from exc
300300
finally:
301301
signal.alarm(0) # Cancel alarm
302302

0 commit comments

Comments
 (0)