Skip to content
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

Use OS provided temporary directory for tests #4361

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

daxpedda
Copy link
Collaborator

Currently wasm-bindgen-test-runner has some logic in place to detect the target folder generated by Cargo and places and hosts any generated files from there.

This PR changes this to simply use the OS provided temporary directory through tempfile, which was already in our dependency tree via rouille (via multipart), to generate a uniquely temporary folder. This doesn't just remove the error-prone logic, but also allows us to confidently allow tests to run in parallel.

@daxpedda daxpedda merged commit c0fd24c into rustwasm:main Dec 17, 2024
67 checks passed
daxpedda added a commit to daxpedda/wasm-bindgen that referenced this pull request Dec 19, 2024
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.

1 participant