Skip to content

Commit f94bb8c

Browse files
authored
Merge pull request #3614 from The-OpenROAD-Project-staging/fix-check-zero-warnings
Fix check in case warning count goes to zero
2 parents 3da1022 + 411c89f commit f94bb8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flow/util/checkMetadata.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def try_number(string):
8080

8181
if field in metadata.keys():
8282
build_value = try_number(metadata[field])
83+
elif "__warnings__count:" in field:
84+
# Metric is a warning count. If the value is missing,
85+
# there were zero warnings
86+
build_value = 0.0
8387
else:
8488
print(f"[ERROR] Value not found for {field}.")
8589
sys.exit(1)

0 commit comments

Comments
 (0)