From c03721c8f55b37dae08b5f6ad15d0c38cc3aed8c Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 20 Aug 2024 14:37:00 -0500 Subject: [PATCH] PYTHON-4656 Fix running of enterprise auth tests (#1801) --- .evergreen/run-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.evergreen/run-tests.sh b/.evergreen/run-tests.sh index beee1ed28..66df6b26c 100755 --- a/.evergreen/run-tests.sh +++ b/.evergreen/run-tests.sh @@ -36,6 +36,7 @@ TEST_ARGS="${*:1}" export PIP_QUIET=1 # Quiet by default export PIP_PREFER_BINARY=1 # Prefer binary dists by default +set +x python -c "import sys; sys.exit(sys.prefix == sys.base_prefix)" || (echo "Not inside a virtual env!"; exit 1) # Try to source local Drivers Secrets @@ -47,7 +48,6 @@ else fi if [ "$AUTH" != "noauth" ]; then - set +x if [ ! -z "$TEST_DATA_LAKE" ]; then export DB_USER="mhuser" export DB_PASSWORD="pencil" @@ -68,10 +68,10 @@ if [ "$AUTH" != "noauth" ]; then export DB_PASSWORD="pwd123" fi echo "Added auth, DB_USER: $DB_USER" - set -x fi if [ -n "$TEST_ENTERPRISE_AUTH" ]; then + python -m pip install '.[gssapi]' if [ "Windows_NT" = "$OS" ]; then echo "Setting GSSAPI_PASS" export GSSAPI_PASS=${SASL_PASS}