summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorJason Chan <jason.chan@mongodb.com>2020-01-08 15:58:43 +0000
committerevergreen <evergreen@mongodb.com>2020-01-08 15:58:43 +0000
commit9a04fb9267ac2828693911fe931169718f8d71d0 (patch)
tree382383ecab8ddb5a464cdf947d06d485f7570d54 /buildscripts
parente3dd9e80e38f3528bc50c3e1115c46a0687885fa (diff)
downloadmongo-9a04fb9267ac2828693911fe931169718f8d71d0.tar.gz
SERVER-45373 Fix exclusion logic for etc/backports_required_for_multiversion_tests.yml
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/evergreen_gen_multiversion_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/evergreen_gen_multiversion_tests.py b/buildscripts/evergreen_gen_multiversion_tests.py
index 06e40947818..161dc0ad666 100755
--- a/buildscripts/evergreen_gen_multiversion_tests.py
+++ b/buildscripts/evergreen_gen_multiversion_tests.py
@@ -330,6 +330,7 @@ def run_generate_tasks(expansion_file, evergreen_config=None):
@click.option("--is-generated-suite", type=bool, required=True,
help="Indicates whether the suite yaml to update is generated or static.")
def generate_exclude_yaml(suite, task_path_suffix, is_generated_suite):
+ # pylint: disable=too-many-locals
"""
Update the given multiversion suite configuration yaml to exclude tests.
@@ -388,7 +389,7 @@ def generate_exclude_yaml(suite, task_path_suffix, is_generated_suite):
for file_name in os.listdir(CONFIG_DIR):
suites_dir = CONFIG_DIR
# Update the 'exclude_files' for each of the appropriate generated suites.
- if suite_name in file_name and file_name.endswith('.yml'):
+ if file_name.endswith('.yml'):
suite_config = generate_resmoke.read_yaml(CONFIG_DIR, file_name)
selected_files = suite_config["selector"]["roots"]
# Only exclude the files that we want to exclude in the first place and have been