diff --git a/reframe/utility/__init__.py b/reframe/utility/__init__.py index cb048c5e19..96f0140ddb 100644 --- a/reframe/utility/__init__.py +++ b/reframe/utility/__init__.py @@ -630,8 +630,8 @@ def _is_valid_for_env(m, e): if environ_mapping is None: return True - for patt, environs in environ_mapping.items(): - if re.match(patt, m) and e in environs: + for patt, env in environ_mapping.items(): + if re.match(patt, m) and e == env: return True return False