Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/1118.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Loadgroup: Always apply the node ID transformation, even if test collection is run on the controller node.
3 changes: 1 addition & 2 deletions src/xdist/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def pytest_collection_modifyitems(
items: list[pytest.Item],
) -> None:
# add the group name to nodeid as suffix if --dist=loadgroup
if config.getvalue("loadgroup"):
if config.getoption("dist") == "loadgroup":
for item in items:
mark = item.get_closest_marker("xdist_group")
if not mark:
Expand Down Expand Up @@ -356,7 +356,6 @@ def getinfodict() -> WorkerInfo:


def setup_config(config: pytest.Config, basetemp: str | None) -> None:
config.option.loadgroup = config.getvalue("dist") == "loadgroup"
config.option.looponfail = False
config.option.usepdb = False
config.option.dist = "no"
Expand Down
Loading