Skip to content

Commit d69f11b

Browse files
committed
Use test-eg for test-atlas
1 parent 9a7cb18 commit d69f11b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.evergreen/run-tests.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ set -o errexit # Exit the script with error if any of the commands fail
2121
# TEST_FLE_GCP_AUTO If non-empy, test auto FLE on GCP
2222
# TEST_PYOPENSSL If non-empy, test with PyOpenSSL
2323
# TEST_ENCRYPTION_PYOPENSSL If non-empy, test encryption with PyOpenSSL
24+
# TEST_ATLAS If non-empty, test Atlas connections
2425

2526
if [ -n "${SET_XTRACE_ON}" ]; then
2627
set -o xtrace
@@ -168,6 +169,11 @@ if [ -n "$TEST_DATA_LAKE" ] && [ -z "$TEST_ARGS" ]; then
168169
TEST_ARGS="test/test_data_lake.py"
169170
fi
170171

172+
if [ -n "$TEST_ATLAS" ]; then
173+
TEST_ARGS="test/atlas/test_connection.py"
174+
fi
175+
176+
171177
echo "Running $AUTH tests over $SSL with python $PYTHON"
172178
python -c 'import sys; print(sys.version)'
173179

@@ -190,7 +196,7 @@ if [ -z "$GREEN_FRAMEWORK" ]; then
190196
python -c "from bson import _cbson; from pymongo import _cmessage"
191197
fi
192198

193-
python -m pytest $TEST_ARGS
199+
python -m pytest -v $TEST_ARGS
194200
else
195201
python -m pip install $GREEN_FRAMEWORK
196202
python green_framework_test.py $GREEN_FRAMEWORK

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ passenv = *
152152
allowlist_externals = bash
153153
commands =
154154
{[testenv:aws-secrets]commands}
155-
bash -c "source ./secrets-export.sh; python -m pytest -v ./test/atlas/test_connection.py"
155+
bash -c "source ./secrets-export.sh; TEST_ATLAS=1 tox -m test-eg"
156156

157157
[testenv:test-mockupdb]
158158
description = run mockupdb tests

0 commit comments

Comments
 (0)