Skip to content

Commit 9f5ff3e

Browse files
committed
fix crypt_shared handling
1 parent 8ab946b commit 9f5ff3e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

etc/setup-test.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,10 @@ if [[ "${GO_BUILD_TAGS}" =~ cse ]]; then
7373
CRYPT_SHARED_LIB_PATH=""
7474
echo "crypt_shared library is skipped"
7575
else
76-
# Find the crypt_shared library file in the current directory and set the CRYPT_SHARED_LIB_PATH to
76+
# Find the crypt_shared library file and set the CRYPT_SHARED_LIB_PATH to
7777
# the path of that file. Only look for .so, .dll, or .dylib files to prevent matching any other
7878
# downloaded files.
79-
if [ "Windows_NT" = "$OS" ]; then
80-
BASE_PATH="c:/libmongocrypt"
81-
else
82-
BASE_PATH="$(pwd)/install"
83-
fi
84-
CRYPT_SHARED_LIB_PATH="$(find "$BASE_PATH" -maxdepth 1 -type f \
79+
CRYPT_SHARED_LIB_PATH="$(find "$MONGODB_BINARIES" -maxdepth 1 -type f \
8580
-name 'mongo_crypt_v1.so' -o \
8681
-name 'mongo_crypt_v1.dll' -o \
8782
-name 'mongo_crypt_v1.dylib')"

0 commit comments

Comments
 (0)