Skip to content

Commit 4a630e0

Browse files
committed
fix auth handling
1 parent 013a6f7 commit 4a630e0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.evergreen/scripts/setup-tests.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ def handle_test_env() -> None:
125125
test_name = opts.test_name
126126
sub_test_name = opts.sub_test_name
127127
AUTH = os.environ.get("AUTH", "noauth")
128-
if opts.auth:
129-
AUTH = "auth"
128+
if opts.auth or "auth" in test_name:
129+
# Only 'auth_aws ecs' shouldn't have extra auth set.
130+
if not (test_name == "auth_aws" and sub_test_name == "ecs"):
131+
AUTH = "auth"
130132
SSL = os.environ.get("SSL", "nossl")
131-
if opts.ssl or "auth" in test_name:
132-
AUTH = "ssl"
133+
if opts.ssl:
134+
SSL = "ssl"
133135
TEST_ARGS = ""
134136

135137
# Start compiling the args we'll pass to uv.

0 commit comments

Comments
 (0)