Skip to content

Commit

Permalink
fix logic core.parse_pod_list so that example string is matched exact…
Browse files Browse the repository at this point in the history
…ly if single_run mode is specified (#432)
  • Loading branch information
wrongkindofdoctor authored Nov 16, 2022
1 parent d58781d commit befe1c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,13 @@ def parse_pod_list(self, pod_list, pod_info_tuple):
for arg in args:
if arg == 'all':
# add all PODs except example PODs
pods.extend([p for p in pod_data if not p.startswith('example')])
pods.extend([p for p in pod_data if not p.lower().startswith('example')])
elif arg == 'example' or arg == 'examples':
# add example PODs
pods.extend([p for p in pod_data if p.startswith('example')])
if self.multirun:
pods.extend([p for p in pod_data if p.lower() == 'example_multicase'])
else:
pods.extend([p for p in pod_data if p.lower() == 'example'])
elif arg in pod_info_tuple.realm_data:
# realm_data: realm name -> list of POD names
# add all PODs for this realm
Expand Down

0 comments on commit befe1c7

Please sign in to comment.