mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Don't mutate OrderedDict while iterating over it in run_tests.py
This commit is contained in:
parent
4eb9a51853
commit
c53178365e
1 changed files with 4 additions and 1 deletions
|
|
@ -300,9 +300,12 @@ if options.list_build_configs:
|
|||
|
||||
# Delete items of dictionary that don't match regular expression
|
||||
if options.build_config is not None:
|
||||
to_delete = []
|
||||
for key in tests:
|
||||
if not re.search(options.build_config, key):
|
||||
del tests[key]
|
||||
to_delete.append(key)
|
||||
for key in to_delete:
|
||||
del tests[key]
|
||||
|
||||
# Check for dashboard and determine whether to push results to server
|
||||
# Note that there are only 3 basic dashboards:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue