File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -370,15 +370,16 @@ def handle_test_env() -> None:
370
370
371
371
if test_name == "auth_aws" and sub_test_name != "ecs-remote" :
372
372
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"
375
373
if "AWS_ROLE_SESSION_NAME" in os .environ :
376
374
write_env ("AWS_ROLE_SESSION_NAME" )
377
375
if sub_test_name != "ecs" :
376
+ aws_setup = f"{ auth_aws_dir } /aws_setup.sh"
378
377
run_command (f"{ aws_setup } { sub_test_name } " )
379
378
creds = read_env (f"{ auth_aws_dir } /test-env.sh" )
380
379
for name , value in creds .items ():
381
380
write_env (name , value )
381
+ else :
382
+ run_command (f"{ auth_aws_dir } /setup-secrets.sh" )
382
383
383
384
if test_name == "perf" :
384
385
# PYTHON-4769 Run perf_test.py directly otherwise pytest's test collection negatively
You can’t perform that action at this time.
0 commit comments