Skip to content

Conversation

@islas
Copy link
Owner

@islas islas commented Jan 7, 2025

When running multiple tests with mapped relative directories, the working directory will be changed to the mapped directory. However, if running in a process pool, the next test to pick up a worker that has already run with a different working directory will start in that wrong directory and thus the relative directory change will not be executed from the expected location.

To ensure processes in a pool always hand off at a known directory the current directory is stashed and subsequently popped after testing, regardless of test outcome.

@islas islas added the test Require testing label Jan 7, 2025
@github-actions github-actions bot removed the test Require testing label Jan 7, 2025
@islas islas merged commit 378728c into main Jan 9, 2025
2 checks passed
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