Skip to content

Commit 8b73303

Browse files
authored
RUST-1537 Update utility shell script usage (#795)
1 parent 8c0b392 commit 8b73303

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.evergreen/config.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ functions:
490490
working_dir: "src"
491491
script: |
492492
${PREPARE_SHELL}
493+
. ${DRIVERS_TOOLS}/.evergreen/find-python3.sh
494+
PYTHON=$(find_python3)
493495
set +o xtrace
494496
cat <<EOT > csfle-expansions.yml
495497
PREPARE_CSFLE: |
@@ -498,8 +500,8 @@ functions:
498500
export DISABLE_CRYPT_SHARED=${DISABLE_CRYPT_SHARED}
499501
export TLS_FEATURE=${TLS_FEATURE}
500502
export CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH}
501-
export PYTHON=${PYTHON}
502-
${PYTHON} -m pip install boto3
503+
export PYTHON=$PYTHON
504+
$PYTHON -m pip install boto3
503505
# Exported without xtrace to avoid leaking credentials
504506
set +o xtrace
505507
export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
@@ -555,8 +557,7 @@ functions:
555557
params:
556558
script: |
557559
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
558-
${PYTHON} -m virtualenv ./venv
559-
./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
560+
. ./activate-ocspvenv.sh
560561
- command: shell.exec
561562
params:
562563
background: true
@@ -574,8 +575,7 @@ functions:
574575
params:
575576
script: |
576577
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
577-
${PYTHON} -m virtualenv ./venv
578-
./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
578+
. ./activate-ocspvenv.sh
579579
- command: shell.exec
580580
params:
581581
background: true
@@ -595,8 +595,7 @@ functions:
595595
params:
596596
script: |
597597
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
598-
${PYTHON} -m virtualenv ./venv
599-
./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
598+
. ./activate-ocspvenv.sh
600599
- command: shell.exec
601600
params:
602601
background: true
@@ -614,8 +613,7 @@ functions:
614613
params:
615614
script: |
616615
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
617-
${PYTHON} -m virtualenv ./venv
618-
./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
616+
. ./activate-ocspvenv.sh
619617
- command: shell.exec
620618
params:
621619
background: true
@@ -1736,36 +1734,31 @@ axes:
17361734
display_name: "Ubuntu 18.04"
17371735
run_on: ubuntu1804-test
17381736
variables:
1739-
PYTHON: "/opt/mongodbtoolchain/v3/bin/python3"
17401737
VENV_BIN_DIR: "bin"
17411738
LIBMONGOCRYPT_OS: "ubuntu1804-64"
17421739
- id: ubuntu-20.04
17431740
display_name: "Ubuntu 20.04"
17441741
run_on: ubuntu2004-test
17451742
variables:
1746-
PYTHON: "/opt/mongodbtoolchain/v3/bin/python3"
17471743
VENV_BIN_DIR: "bin"
17481744
LIBMONGOCRYPT_OS: "ubuntu2004-64"
17491745
- id: ubuntu-18.04-arm64
17501746
display_name: "ARM64 Ubuntu 18.04"
17511747
run_on: ubuntu1804-arm64-test
17521748
variables:
1753-
PYTHON: "/opt/mongodbtoolchain/v3/bin/python3"
17541749
VENV_BIN_DIR: "bin"
17551750
LIBMONGOCRYPT_OS: "ubuntu1804-arm64"
17561751
- id: macos-11.00
17571752
display_name: "MacOS 11.00"
17581753
run_on: macos-1100
17591754
variables:
17601755
SINGLE_THREAD: true
1761-
PYTHON: "/opt/mongodbtoolchain/v3/bin/python3"
17621756
VENV_BIN_DIR: "bin"
17631757
LIBMONGOCRYPT_OS: "macos"
17641758
- id: windows-64-vs2017
17651759
display_name: "Windows (VS 2017)"
17661760
run_on: windows-64-vs2017-test
17671761
variables:
1768-
PYTHON: "/cygdrive/c/python/Python36/python"
17691762
VENV_BIN_DIR: "Scripts"
17701763
LIBMONGOCRYPT_OS: "windows-test"
17711764

.evergreen/run-csfle-kmip-servers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "$TLS_FEATURE" != "openssl-tls" ]; then
66
fi
77

88
cd ${DRIVERS_TOOLS}/.evergreen/csfle
9-
. ./activate_venv.sh
9+
. ./activate-kmstlsvenv.sh
1010
# TMPDIR is required to avoid "AF_UNIX path too long" errors.
1111
export TMPDIR="$(dirname ${DRIVERS_TOOLS})"
1212

0 commit comments

Comments
 (0)