Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,11 @@ def process_self_contained_coordinator_stream(
fn, github_token, pull_request, "redis", "redis", verbose
)

test_regexp = ".*"
if b"test_regexp" in testDetails:
test_regexp = testDetails[b"test_regexp"]
tests_regexp = ".*"
if b"tests_regexp" in testDetails:
tests_regexp = testDetails[b"tests_regexp"]
logging.info(
f"detected a regexp definition on the streamdata {test_regexp}"
f"detected a regexp definition on the streamdata {tests_regexp}"
)

command_groups_regexp = None
Expand Down Expand Up @@ -596,7 +596,7 @@ def process_self_contained_coordinator_stream(
defaults_filename,
priority_lower_limit,
priority_upper_limit,
test_regexp,
tests_regexp,
testsuite_spec_files,
command_groups_regexp,
)
Expand Down Expand Up @@ -1368,7 +1368,7 @@ def filter_test_files(
defaults_filename,
priority_lower_limit,
priority_upper_limit,
test_regexp,
tests_regexp,
testsuite_spec_files,
command_groups_regexp=None,
):
Expand All @@ -1377,17 +1377,17 @@ def filter_test_files(
if defaults_filename in test_file:
continue

if test_regexp != ".*":
if tests_regexp != ".*":
logging.info(
"Filtering all tests via a regular expression: {}".format(test_regexp)
"Filtering all tests via a regular expression: {}".format(tests_regexp)
)
tags_regex_string = re.compile(test_regexp)
tags_regex_string = re.compile(tests_regexp)

match_obj = re.search(tags_regex_string, test_file)
if match_obj is None:
logging.info(
"Skipping {} given it does not match regex {}".format(
test_file, test_regexp
test_file, tests_regexp
)
)
continue
Expand Down