File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ cleanup_tests() {
3737trap " cleanup_tests" SIGINT ERR
3838
3939# Start the test runner.
40- if [ -n " ${UV_PYTHON:- } " ]; then
41- echo " Using UV_PYTHON=$UV_PYTHON "
42- fi
43- set -x
44- uv run ${UV_ARGS} --python $UV_PYTHON --reinstall-package pymongo .evergreen/scripts/run_tests.py " $@ "
40+ uv run ${UV_ARGS} --reinstall-package pymongo .evergreen/scripts/run_tests.py " $@ "
4541
4642cleanup_tests
Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ def handle_test_env() -> None:
154154 # Start compiling the args we'll pass to uv.
155155 UV_ARGS = ["--extra test --no-group dev" ]
156156
157+ # If UV_PYTHON is set, add it to args.
158+ if is_set ("UV_PYTHON" ):
159+ UV_ARGS .extend (["--python" , os .environ ["UV_PYTHON" ]])
160+
157161 test_title = test_name
158162 if sub_test_name :
159163 test_title += f" { sub_test_name } "
You can’t perform that action at this time.
0 commit comments