From 9d6b81a3ed3bdc5e39873ba040cb772c3ef3fa42 Mon Sep 17 00:00:00 2001 From: "Jeffrey A. Clark" Date: Wed, 10 Dec 2025 17:46:58 -0500 Subject: [PATCH] PYTHON-5669 Support uv run --active in setup-tests --- .evergreen/scripts/setup-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.evergreen/scripts/setup-tests.sh b/.evergreen/scripts/setup-tests.sh index 1074c7eaaf..858906a39e 100755 --- a/.evergreen/scripts/setup-tests.sh +++ b/.evergreen/scripts/setup-tests.sh @@ -12,6 +12,7 @@ set -eu # TEST_CRYPT_SHARED If non-empty, install crypt_shared lib. # MONGODB_API_VERSION The mongodb api version to use in tests. # MONGODB_URI If non-empty, use as the MONGODB_URI in tests. +# USE_ACTIVE_VENV If non-empty, use the active virtual environment. SCRIPT_DIR=$(dirname ${BASH_SOURCE:-$0}) @@ -21,5 +22,5 @@ if [ -f $SCRIPT_DIR/env.sh ]; then fi echo "Setting up tests with args \"$*\"..." -uv run $SCRIPT_DIR/setup_tests.py "$@" +uv run ${USE_ACTIVE_VENV:+--active} "$SCRIPT_DIR/setup_tests.py" "$@" echo "Setting up tests with args \"$*\"... done."