feat(test-support): Use test name for dir when running tests
In #11738, I made a test's "sandbox" folder based on its name instead of a generated number, which can change from run to run. #11812 reverted this change due to problems with path length limits on Windows. After getting frustrated with the generated folders while trying to debug a test recently, I decided that it would be a good idea to bring back name-based folders to platforms that support them.
r? @ehuss
rustbot has assigned @ehuss. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
There is some documentation in https://github.com/rust-lang/cargo/blob/HEAD/src/doc/contrib/src/tests/writing.md that would need to be updated.
@rustbot author
I think @Muscraft indicated he could add some kind of symlink to the first test. There's also the docs to be updated.
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.
Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.
@Muscraft Is this ready?
Yes it's ready, I just forgot to mark it as such
@rustbot ready
:umbrella: The latest upstream changes (possibly 2aa0773e6120798d11160a635cb4be9cc9599a68) made this pull request unmergeable. Please resolve the merge conflicts.