Skip to content

Commit ca7722f

Browse files
committed
debug
1 parent 56bc17d commit ca7722f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.evergreen/scripts/setup_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,16 @@ def handle_test_env() -> None:
370370

371371
if test_name == "auth_aws" and sub_test_name != "ecs-remote":
372372
auth_aws_dir = f"{DRIVERS_TOOLS}/.evergreen/auth_aws"
373-
run_command(f"{auth_aws_dir}/setup-secrets.sh")
374-
aws_setup = f"{auth_aws_dir}/aws_setup.sh"
375373
if "AWS_ROLE_SESSION_NAME" in os.environ:
376374
write_env("AWS_ROLE_SESSION_NAME")
377375
if sub_test_name != "ecs":
376+
aws_setup = f"{auth_aws_dir}/aws_setup.sh"
378377
run_command(f"{aws_setup} {sub_test_name}")
379378
creds = read_env(f"{auth_aws_dir}/test-env.sh")
380379
for name, value in creds.items():
381380
write_env(name, value)
381+
else:
382+
run_command(f"{auth_aws_dir}/setup-secrets.sh")
382383

383384
if test_name == "perf":
384385
# PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively

0 commit comments

Comments
 (0)