Skip to content

Commit 00187c0

Browse files
more fixes for test failures
1 parent aa91f0f commit 00187c0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tools/maintenance.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,13 @@ def main():
157157
if args.stats_report:
158158
# If all test results are zero, all tests have passed
159159
patch.patch(args.instructions, results_dict, args.link)
160-
if all(results_dict.get(k) for k in results_dict):
161-
# Errors exist
162-
logging.info("Tests failed in test suite")
163-
sys.exit(1)
160+
if results_dict is not None:
161+
if all(results_dict.get(k) for k in results_dict):
162+
# Errors exist
163+
logging.info("Tests failed in test suite")
164+
sys.exit(1)
165+
else:
166+
pass
164167
elif args.spelling:
165168
logging.info(f"Checking spelling of {args.spelling}")
166169
output = parse.spelling(args.spelling)

0 commit comments

Comments
 (0)