Fix running when no test cases exist for a part

This commit is contained in:
akp 2023-12-11 14:48:41 +00:00
parent 4d756162c5
commit f27aeed14f
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

2
aoc
View file

@ -239,7 +239,7 @@ class CLI(object):
for part in ["1", "2"]:
if select_part and select_part != part:
continue
for i, spec in enumerate(test_specs[part]):
for i, spec in enumerate(test_specs.get(part, [])):
run_part(cmd + [part], f"Test {part}.{i+1}", spec)
if no_test or not test_only: