-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slave 'gw0' crashed when using pytest.exit() #86
Comments
Thanks for the report. That seems like a bug in |
This is is fairly painful for me, as I use xdist on our CI for integration tests - failed setup (errors in migration, etc) aborts the pytest run but the errors don't get reported nicely to the dev. If there's some clear guidance on how to approach this I might be able to put in a PR |
@Daenyth are they aborted by |
I invoke When I omit the |
Thanks, I was asking just to know for sure if it was crashing due to something else. |
@nicoddemus Do you think this is a reasonably easy fix to contribute? I think a test case shouldn't be too hard to create showing the issue. |
A PR with an xfail test would be very welcome! |
It's difficult to fix this issue because pytest sends pytest (main.py)
xdist (dsession.py):
Maybe we can except smth like So, if smb knows how to fix it easy please, give me an advice) |
@feuillemorte good point, I see that |
I'll create a task to pytest (which branch? master?) but I really don't know how to pass message to xdist module from pytest: Lines 40 to 44 in 3098f27
task: |
Might have changed/improved in pytest: pytest-dev/pytest#3144 (comment) |
Environment:
python 3.5.2
pytest==2.9.2
pytest-xdist==1.15.0
pytest-randomly==1.0.0
When using the method
pytest.exit(msg)
to immediately exit the test run, I've got the following error (for any value of n):Slave 'gw0' crashed while running 'test_name' !!!!! xdist.dsession.Interrupted: <SlaveController gw0> received keyboard-interrupt !!!!
Am I missing any other parameter (besides -n) that I should be passing?
Thanks for your help! Please, let me know if there is any extra information I can provide that could help to debug the issue.
The text was updated successfully, but these errors were encountered: