Skip to content

Commit 8db8209

Browse files
committed
Fixes for upstream-pr option
1 parent f05dd36 commit 8db8209

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pytest_plugins/upstream_pr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def match_file_to_rule(filename, rule):
3232
path_pattern = rule.path
3333

3434
try:
35-
return bool(re.search(path_pattern, filename))
35+
return bool(re.search(path_pattern, filename, flags=re.IGNORECASE))
3636
except re.error as e:
3737
logger.error(f"Invalid regex pattern '{path_pattern}': {e}")
3838
return False
@@ -192,7 +192,7 @@ def pytest_collection_modifyitems(session, items, config):
192192
if match_file_to_rule(filename, rule)
193193
}
194194
if matched_filenames:
195-
components.add(rule.component)
195+
components.add(rule.component.lower())
196196
unprocessed_filenames.difference_update(matched_filenames)
197197
logger.debug(
198198
f"Rule '{rule.path}' matched {len(matched_filenames)} files, "

0 commit comments

Comments
 (0)