Skip to content

Commit a6aa7f2

Browse files
committed
fix handling of auth_aws
1 parent 4300f1e commit a6aa7f2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ functions:
207207
binary: bash
208208
working_dir: "src"
209209
include_expansions_in_env: [VERSION, TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE,
210-
STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED]
210+
STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED, AUTH_AWS, LOAD_BALANCER]
211211
args: [.evergreen/just.sh, run-server, "${TEST_NAME}", "${SUB_TEST_NAME}"]
212212
- command: expansions.update
213213
params:

.evergreen/scripts/run_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def set_env(name: str, value: Any = "1") -> None:
1111

1212

1313
def start_server():
14-
opts = get_test_options()
14+
opts = get_test_options(require_sub_test_name=False)
1515
test_name = opts.test_name
1616

1717
if test_name == "auth_aws":

.evergreen/scripts/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Distro:
5252
SUB_TEST_REQUIRED = ["auth_aws", "kms"]
5353

5454

55-
def get_test_options():
55+
def get_test_options(require_sub_test_name=True):
5656
parser = argparse.ArgumentParser(
5757
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
5858
)
@@ -82,7 +82,7 @@ def get_test_options():
8282
# Handle validation and environment variable overrides.
8383
test_name = opts.test_name
8484
sub_test_name = opts.sub_test_name
85-
if test_name in SUB_TEST_REQUIRED and not sub_test_name:
85+
if require_sub_test_name and test_name in SUB_TEST_REQUIRED and not sub_test_name:
8686
raise ValueError(f"Test '{test_name}' requires a sub_test_name")
8787
if "auth" in test_name or os.environ.get("AUTH") == "auth":
8888
opts.auth = True

0 commit comments

Comments
 (0)