Skip to content

Commit 79028b6

Browse files
committed
clean up tasks
1 parent 56e2982 commit 79028b6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ tasks:
790790
commands:
791791
- func: run server
792792
vars:
793-
TOPOLOGY: replica-set
793+
TOPOLOGY: replica_set
794794
- func: run tests
795795
vars:
796796
TEST_NAME: mod_wsgi
@@ -810,7 +810,7 @@ tasks:
810810
commands:
811811
- func: run server
812812
vars:
813-
TOPOLOGY: replica-set
813+
TOPOLOGY: replica_set
814814
- func: run tests
815815
vars:
816816
TEST_NAME: mod_wsgi

.evergreen/scripts/generate_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,12 +889,12 @@ def create_oidc_tasks():
889889

890890
def create_mod_wsgi_tasks():
891891
tasks = []
892-
for test, topology in product(["standalone", "embedded-mode"], ["standalone", "replica-set"]):
892+
for test, topology in product(["standalone", "embedded-mode"], ["standalone", "replica_set"]):
893893
if test == "standalone":
894894
task_name = "mod-wsgi-"
895895
else:
896896
task_name = "mod-wsgi-embedded-mode-"
897-
task_name += topology
897+
task_name += topology.replace("_", "-")
898898
server_vars = dict(TOPOLOGY=topology)
899899
server_func = FunctionCall(func="run server", vars=server_vars)
900900
vars = dict(TEST_NAME="mod_wsgi", SUB_TEST_NAME=test)

.evergreen/scripts/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class Distro:
5252
# Tests that require a sub test suite.
5353
SUB_TEST_REQUIRED = ["auth_aws", "auth_oidc", "kms", "mod_wsgi"]
5454

55+
EXTRA_TESTS = ["mod_wsgi"]
56+
5557

5658
def get_test_options(
5759
description, require_sub_test_name=True, allow_extra_opts=False
@@ -62,7 +64,7 @@ def get_test_options(
6264
if require_sub_test_name:
6365
parser.add_argument(
6466
"test_name",
65-
choices=sorted(TEST_SUITE_MAP),
67+
choices=sorted(TEST_SUITE_MAP + EXTRA_TESTS),
6668
nargs="?",
6769
default="default",
6870
help="The optional name of the test suite to set up, typically the same name as a pytest marker.",

0 commit comments

Comments
 (0)