Skip to content

Commit 9d6b81a

Browse files
committed
PYTHON-5669 Support uv run --active in setup-tests
1 parent 1496b8d commit 9d6b81a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.evergreen/scripts/setup-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ set -eu
1212
# TEST_CRYPT_SHARED If non-empty, install crypt_shared lib.
1313
# MONGODB_API_VERSION The mongodb api version to use in tests.
1414
# MONGODB_URI If non-empty, use as the MONGODB_URI in tests.
15+
# USE_ACTIVE_VENV If non-empty, use the active virtual environment.
1516

1617
SCRIPT_DIR=$(dirname ${BASH_SOURCE:-$0})
1718

@@ -21,5 +22,5 @@ if [ -f $SCRIPT_DIR/env.sh ]; then
2122
fi
2223

2324
echo "Setting up tests with args \"$*\"..."
24-
uv run $SCRIPT_DIR/setup_tests.py "$@"
25+
uv run ${USE_ACTIVE_VENV:+--active} "$SCRIPT_DIR/setup_tests.py" "$@"
2526
echo "Setting up tests with args \"$*\"... done."

0 commit comments

Comments
 (0)