Delay launchdir init until test execution #214
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change separates the definition of the launch/meta/output/work directory paths from the physical re-initialization of the actual directories on the filesystem. The definition of the paths still happens up front, but the init and the rest of the
setup()
call has been moved down into the test execution engine inner loop. This prevents nf-test from changing the filesystem until the last moment before any given test actually runs. With this change,nf-test list
or running specified tests no longer deletes the output from other tests. This also conveniently enables running tests in parallel without any extra filesystem isolation or containerization.Fixes #213