We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdf1b49 commit 25ccfa1Copy full SHA for 25ccfa1
src/xdist/plugin.py
@@ -316,11 +316,13 @@ def get_shared_data(request_or_session):
316
@pytest.fixture(scope="session")
317
def add_shared_data(request, worker_id):
318
"""Adds data that will be collected from all workers and be accessible from master node in sessionfinish hook"""
319
+
320
def _add(key, value):
321
shared = request.config.stash.setdefault(shared_key, {})
322
if worker_id == "master":
323
# Worker shared_data are grouped together, master data aren't
324
shared[key] = [value]
325
else:
326
shared[key] = value
327
328
return _add
0 commit comments