E52F feat: reset worker after file by JuroOravec · Pull Request #1254 · pytest-dev/pytest-xdist · GitHub
[go: up one dir, main page]

Skip to content

Conversation

JuroOravec
Copy link

This is a proof of concept for #363

Copy link
Member
@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the key parts of making this work sane is - interaction with worker restart limits, limiting collection on subsequent test processes and correct shutdown of the nodes (no os._exit)

if session.shouldfail or session.shouldstop:
break
if self.shutdown_on_finish:
os._exit(1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os.exit is always the wrong thing to do there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0