From befe1c7bdaf90992fef6d7f387f32f867604c8e7 Mon Sep 17 00:00:00 2001 From: Jess <20195932+wrongkindofdoctor@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:23:13 -0500 Subject: [PATCH] fix logic core.parse_pod_list so that example string is matched exactly if single_run mode is specified (#432) --- src/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core.py b/src/core.py index f91142b4e..df7e97d56 100644 --- a/src/core.py +++ b/src/core.py @@ -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