Repository navigation
test(cloudxr): clean up test_background's stand-in on failure - #1329
Conversation
Follow-up to the terminate-race fix in test_background.py. Now that the stand-in service really sleeps for 30 s, a failure before terminate() succeeds left it running; kill it in a finally, as the sibling spawn tests already do. On success the child is an unreaped zombie by then, so the kill is a no-op. Also prepend the stand-in's directory to PYTHONPATH instead of replacing it, so the child keeps the inherited path. Signed-off-by: Jakob Bornecrantz <tbornecrantz@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Description
Follow-up to the terminate-race fix in test_background.py. Now that the stand-in service really sleeps for 30 s, a failure before terminate() succeeds left it running; kill it in a finally, as the sibling spawn tests already do. On success the child is an unreaped zombie by then, so the kill is a no-op.
Also prepend the stand-in's directory to PYTHONPATH instead of replacing it, so the child keeps the inherited path.
Type of change
Testing
Ran the test
Checklist
SKIP=check-copyright-year pre-commit run --all-filesgit commit -s) per the DCOSummary by CodeRabbit