Skip to content

Commit b2f0a52

Browse files
authored
PYTHON-4526 DRIVERS_TOOLS needs to be set for encryption tests (mongodb#1723)
1 parent e4ba8ce commit b2f0a52

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ the pages will re-render and the browser will automatically refresh.
216216
`TEST_LOADBALANCER=1 tox -m test-eg`.
217217

218218
## Running Encryption Tests Locally
219+
- Clone `drivers-evergreen-tools`:
220+
`git clone [email protected]:mongodb-labs/drivers-evergreen-tools.git`.
221+
- Run `export DRIVERS_TOOLS=$PWD/drivers-evergreen-tools`
219222
- Run `AWS_PROFILE=<profile> tox -m setup-encryption` after setting up your AWS profile with `aws configure sso`.
220223
- Run the tests with `TEST_ENCRYPTION=1 tox -e test-eg`.
221224
- When done, run `tox -m teardown-encryption` to clean up.

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ allowlist_externals =
197197
bash
198198
commands =
199199
bash .evergreen/setup-libmongocrypt.sh
200-
bash {env:DRIVERS_TOOLS}/.evergreen/csfle/setup-secrets.sh
200+
bash {env:DRIVERS_TOOLS:DRIVERS_TOOLS_var_undefined}/.evergreen/csfle/setup-secrets.sh
201201
bash {env:DRIVERS_TOOLS}/.evergreen/csfle/start-servers.sh
202202

203203
[testenv:teardown-encryption]
@@ -208,5 +208,5 @@ allowlist_externals =
208208
bash
209209
rm
210210
commands =
211-
bash {env:DRIVERS_TOOLS}/.evergreen/csfle/stop-servers.sh
211+
bash {env:DRIVERS_TOOLS:DRIVERS_TOOLS_var_undefined}/.evergreen/csfle/stop-servers.sh
212212
rm -rf libmongocrypt/ libmongocrypt_git/ libmongocrypt.tar.gz mongocryptd.pid

0 commit comments

Comments
 (0)