diff options
author | David Bradford <david.bradford@mongodb.com> | 2021-01-24 21:06:36 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-25 18:36:43 +0000 |
commit | ba2320f093a1c138e250f27dcaf937f2a635b91b (patch) | |
tree | 04ffa65cd1ce6afb374a0a9c79c622430ad57e1e /buildscripts/burn_in_tests.py | |
parent | 9c8fde52207b4bbf464cb840390d5384fa0ec2cc (diff) | |
download | mongo-ba2320f093a1c138e250f27dcaf937f2a635b91b.tar.gz |
SERVER-53960: Don't generate enterprise tests with burn_in on non-enterprise builds
Diffstat (limited to 'buildscripts/burn_in_tests.py')
-rw-r--r-- | buildscripts/burn_in_tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/buildscripts/burn_in_tests.py b/buildscripts/burn_in_tests.py index cb808a1f6a3..8a32a626a31 100644 --- a/buildscripts/burn_in_tests.py +++ b/buildscripts/burn_in_tests.py @@ -55,7 +55,8 @@ AVG_TEST_TIME_MULTIPLIER = 3 CONFIG_FILE = ".evergreen.yml" DEFAULT_PROJECT = "mongodb-mongo-master" DEFAULT_VARIANT = "enterprise-rhel-62-64-bit-dynamic-required" -DEFAULT_REPO_LOCATIONS = [".", "./src/mongo/db/modules/enterprise"] +ENTERPRISE_MODULE_PATH = "src/mongo/db/modules/enterprise" +DEFAULT_REPO_LOCATIONS = [".", f"./{ENTERPRISE_MODULE_PATH}"] REPEAT_SUITES = 2 EVERGREEN_FILE = "etc/evergreen.yml" MIN_AVG_TEST_OVERFLOW_SEC = float(60) @@ -264,7 +265,7 @@ def find_excludes(selector_file: str) -> Tuple[List, List, List]: default_if_none(js_test.get("exclude_tests"), [])) -def filter_tests(tests: Set[str], exclude_tests: [str]) -> Set[str]: +def filter_tests(tests: Set[str], exclude_tests: List[str]) -> Set[str]: """ Exclude tests which have been blacklisted. @@ -667,6 +668,8 @@ def create_tests_by_task(build_variant: str, evg_conf: EvergreenProjectConfig, :return: Tests by task. """ exclude_suites, exclude_tasks, exclude_tests = find_excludes(SELECTOR_FILE) + if not evg_conf.get_variant(build_variant).is_enterprise_build(): + exclude_tests.append(f"{ENTERPRISE_MODULE_PATH}/**/*") changed_tests = filter_tests(changed_tests, exclude_tests) buildscripts.resmokelib.parser.set_run_options() |