Skip to content

Commit c03721c

Browse files
authored
PYTHON-4656 Fix running of enterprise auth tests (mongodb#1801)
1 parent ad88879 commit c03721c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.evergreen/run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ TEST_ARGS="${*:1}"
3636
export PIP_QUIET=1 # Quiet by default
3737
export PIP_PREFER_BINARY=1 # Prefer binary dists by default
3838

39+
set +x
3940
python -c "import sys; sys.exit(sys.prefix == sys.base_prefix)" || (echo "Not inside a virtual env!"; exit 1)
4041

4142
# Try to source local Drivers Secrets
@@ -47,7 +48,6 @@ else
4748
fi
4849

4950
if [ "$AUTH" != "noauth" ]; then
50-
set +x
5151
if [ ! -z "$TEST_DATA_LAKE" ]; then
5252
export DB_USER="mhuser"
5353
export DB_PASSWORD="pencil"
@@ -68,10 +68,10 @@ if [ "$AUTH" != "noauth" ]; then
6868
export DB_PASSWORD="pwd123"
6969
fi
7070
echo "Added auth, DB_USER: $DB_USER"
71-
set -x
7271
fi
7372

7473
if [ -n "$TEST_ENTERPRISE_AUTH" ]; then
74+
python -m pip install '.[gssapi]'
7575
if [ "Windows_NT" = "$OS" ]; then
7676
echo "Setting GSSAPI_PASS"
7777
export GSSAPI_PASS=${SASL_PASS}

0 commit comments

Comments
 (0)