Skip to content

Commit

Permalink
test(NODE-4463): set version properly
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jul 27, 2022
1 parent b5dd3a3 commit 899d473
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .evergreen/config.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,16 @@ functions:
. ./prepare_client_encryption.sh
rm -f ./prepare_client_encryption.sh
MONGODB_VERSION=${VERSION}
if [ -z "$MONGODB_VERSION" ]; then
# default to latest to match behavior of run-orchestration.sh.
MONGODB_VERSION=latest
fi
. $DRIVERS_TOOLS/.evergreen/download-mongodb.sh
get_distro
# get_distro defines $DISTRO.
echo "distro='$DISTRO' version='$MONGODB_VERSION'".
get_mongodb_download_url_for "$DISTRO" "$MONGODB_VERSION"
# get_mongodb_download_url_for defines $MONGO_CRYPT_SHARED_DOWNLOAD_URL and $EXTRACT.
if [ -z "$MONGO_CRYPT_SHARED_DOWNLOAD_URL" ]; then
Expand Down
7 changes: 7 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,16 @@ functions:
. ./prepare_client_encryption.sh
rm -f ./prepare_client_encryption.sh
MONGODB_VERSION=${VERSION}
if [ -z "$MONGODB_VERSION" ]; then
# default to latest to match behavior of run-orchestration.sh.
MONGODB_VERSION=latest
fi
. $DRIVERS_TOOLS/.evergreen/download-mongodb.sh
get_distro
# get_distro defines $DISTRO.
echo "distro='$DISTRO' version='$MONGODB_VERSION'".
get_mongodb_download_url_for "$DISTRO" "$MONGODB_VERSION"
# get_mongodb_download_url_for defines $MONGO_CRYPT_SHARED_DOWNLOAD_URL and $EXTRACT.
if [ -z "$MONGO_CRYPT_SHARED_DOWNLOAD_URL" ]; then
Expand Down

0 comments on commit 899d473

Please sign in to comment.