Skip to content

Commit 0f135a1

Browse files
authored
PYTHON-3413 Ensure AWS EC2 Credential Test is Running Properly (#1048)
1 parent 1575e53 commit 0f135a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.evergreen/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,13 @@ functions:
643643
working_dir: "src"
644644
script: |
645645
${PREPARE_SHELL}
646+
if [ "${skip_EC2_auth_test}" = "true" ]; then
647+
echo "This platform does not support the EC2 auth test, skipping..."
648+
exit 0
649+
fi
650+
# Write an empty prepare_mongodb_aws so no auth environment variables
651+
# are set.
652+
echo "" > "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
646653
PYTHON_BINARY=${PYTHON_BINARY} ASSERT_NO_URI_CREDS=true .evergreen/run-mongodb-aws-test.sh
647654
648655
"run aws auth test with aws credentials as environment variables":

0 commit comments

Comments
 (0)