3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-12 08:10:56 +00:00

Prefer the first tracefile for each failing assertion

This commit is contained in:
Jannis Harder 2022-03-30 13:35:57 +02:00
parent 2e0087fd2f
commit b725bfed0c
2 changed files with 4 additions and 1 deletions

View file

@ -25,3 +25,5 @@ for task in ["keepgoing_multi_step_bmc", "keepgoing_multi_step_prove"]:
assert re.search(r"Assert failed in test: %s \(.*\) \[failed before\]$" % step_3_7, log_per_trace[3], re.M)
assert re.search(r"Assert failed in test: %s \(.*\)$" % step_7, log_per_trace[3], re.M)
pattern = f"Property ASSERT in test at {assert_0} failed. Trace file: engine_0/trace0.vcd"
assert re.search(pattern, open(f"{task}/{task}.xml").read())