Skip to content

Commit 29d8232

Browse files
committed
try with arg
1 parent f068000 commit 29d8232

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.evergreen/run-tests.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ cleanup_tests() {
3737
trap "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

4642
cleanup_tests

.evergreen/scripts/setup_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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}"

0 commit comments

Comments
 (0)