@@ -463,6 +463,7 @@ functions:
463
463
script : |
464
464
${PREPARE_SHELL}
465
465
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
466
+ . ./activate_venv.sh
466
467
mongo aws_e2e_regular_aws.js
467
468
- command : shell.exec
468
469
type : test
@@ -491,15 +492,8 @@ functions:
491
492
working_dir : " src"
492
493
script : |
493
494
${PREPARE_SHELL}
494
- # The aws_e2e_assume_role script requires python3 with boto3.
495
- virtualenv -p ${python3_binary} mongovenv
496
- if [ "Windows_NT" = "$OS" ]; then
497
- . mongovenv/Scripts/activate
498
- else
499
- . mongovenv/bin/activate
500
- fi
501
- pip install --upgrade boto3
502
495
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
496
+ . ./activate_venv.sh
503
497
mongo aws_e2e_assume_role.js
504
498
- command : shell.exec
505
499
type : test
@@ -538,13 +532,8 @@ functions:
538
532
echo "This platform does not support the EC2 auth test, skipping..."
539
533
exit 0
540
534
fi
541
- # The mongovenv was created earlier in "run aws auth test with assume role credentials".
542
- if [ "Windows_NT" = "$OS" ]; then
543
- . mongovenv/Scripts/activate
544
- else
545
- . mongovenv/bin/activate
546
- fi
547
535
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
536
+ . ./activate_venv.sh
548
537
mongo aws_e2e_ec2.js
549
538
- command : shell.exec
550
539
type : test
@@ -607,13 +596,8 @@ functions:
607
596
echo "This platform does not support the ECS auth test, skipping..."
608
597
exit 0
609
598
fi
610
- # The mongovenv was created earlier in "run aws auth test with assume role credentials".
611
- if [ "Windows_NT" = "$OS" ]; then
612
- . mongovenv/Scripts/activate
613
- else
614
- . mongovenv/bin/activate
615
- fi
616
599
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
600
+ . ./activate_venv.sh
617
601
cat <<EOF > setup.js
618
602
const mongo_binaries = "$MONGODB_BINARIES";
619
603
const project_dir = "$PROJECT_DIRECTORY";
0 commit comments