Skip to content

Commit 2a7fcbe

Browse files
committed
test: drop hardcoded pytest --basetemp so parallel pixi run test invocations don't race
xdist.setup_node() calls basetemp.mkdir(mode=0o700) without exist_ok=True. With `--basetemp=pytest-temp` hardcoded in pytest.ini, the second of two concurrent pixi-test invocations panicked with FileExistsError: '/var/home/tobias/src/pixi/pytest-temp' Removing the override falls back to pytest's default /tmp/pytest-of-USER/pytest-N/, which auto-uniquifies per invocation.
1 parent 758e530 commit 2a7fcbe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pytest.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[pytest]
2-
addopts = --basetemp=pytest-temp --timeout=600 --durations=0
2+
# No --basetemp override: rely on pytest's default
3+
# /tmp/pytest-of-<user>/pytest-N/, which auto-uniquifies per invocation.
4+
# Hardcoding `pytest-temp` made two concurrent `pixi run test`s race on
5+
# `mkdir(mode=0o700)` inside xdist.setup_node and FileExistsError out.
6+
addopts = --timeout=600 --durations=0
37
tmp_path_retention_policy = failed
48
testpaths = tests/integration_python
59
markers =

0 commit comments

Comments
 (0)