Skip to content

Commit c75cfe8

Browse files
AlexJones0machshev
authored andcommitted
fix: track error results seen in sim flows
With errors in sim flows, we were not getting an error log or the correct erroneous exit code because the "errors_seen" state variable of the SimCfg was not being updated correctly. Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
1 parent 1299c8a commit c75cfe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dvsim/sim/flow.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ def make_test_result(tr) -> TestResult | None:
795795
)
796796

797797
failures = BucketedFailures.from_job_status(results=run_results)
798+
if failures.buckets:
799+
self.errors_seen = True
798800

799801
# --- Final result ---
800802
return SimFlowResults(

0 commit comments

Comments
 (0)