Skip to content

Commit b554850

Browse files
authored
Merge pull request #1264 from vvbandeira/skip-drc-print
util: only print DRC message if there are any
2 parents e6f80a1 + 7af45c3 commit b554850

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

flow/util/genReport.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,12 @@ def gen_report(name, data):
102102
TODO: docs
103103
'''
104104

105-
if args.verbose >= 2 or data['drcs'] or data['status'] != STATUS_GREEN:
105+
if args.verbose >= 2 and data['status'] != STATUS_GREEN:
106106
output = f"{name}\n"
107-
if data['status'] == STATUS_RED:
108-
if data['finished']:
109-
output += ' Flow reached last stage.\n'
110-
else:
111-
output += f" Last log file {data['last_log']}\n"
107+
if data['finished']:
108+
output += ' Flow reached last stage.\n'
109+
else:
110+
output += f" Last log file {data['last_log']}\n"
112111
else:
113112
output = ""
114113

@@ -163,7 +162,7 @@ def gen_report(name, data):
163162
REGEX_WARNING,
164163
args.verbose - 2)
165164

166-
if d['drcs']:
165+
if len(d['drcs'].keys()) > 0:
167166
if data['status'] == STATUS_GREEN:
168167
output += ' Design has the violations under the allowed limit: '
169168
else:

0 commit comments

Comments
 (0)