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

handle unreached cover properties

This commit is contained in:
N. Engelhardt 2022-02-07 15:29:36 +01:00
parent 5abaccab69
commit 53eb25fcae
4 changed files with 41 additions and 2 deletions

View file

@ -756,6 +756,7 @@ class SbyTask:
junit_failures = 0
else:
if self.precise_prop_status:
junit_failures = 0
for check in checks:
if check.status not in self.expect:
junit_failures += 1
@ -777,7 +778,8 @@ class SbyTask:
elif check.status == "UNKNOWN":
print(f'<skipped />', file=f)
elif check.status == "FAIL":
print(f'<failure type="{check.type}" message="Property in {check.hierarchy} at {check.location} failed. Trace file: {check.tracefile}" />', file=f)
traceinfo = f' Trace file: {check.tracefile}' if check.type == check.Type.ASSERT else ''
print(f'<failure type="{check.type}" message="Property {check.type} in {check.hierarchy} at {check.location} failed.{traceinfo}" />', file=f)
elif check.status == "ERROR":
print(f'<error type="ERROR"/>', file=f) # type mandatory, message optional
print(f'</testcase>', file=f)