-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
test: use unique tmpdirs for each test #28858
Closed
Closed
Commits on Aug 7, 2019
-
test: use unique tmpdirs for each test
Tests can leave processes running blocking the tmpdir. This does not yet prevent tests from doing that, but prevents failures on subsequent tests.
Configuration menu - View commit details
-
Copy full SHA for 7a65a6f - Browse repository at this point
Copy the full SHA 7a65a6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 326392f - Browse repository at this point
Copy the full SHA 326392fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d38c77 - Browse repository at this point
Copy the full SHA 1d38c77View commit details -
benchmark: use test/common/tmpdir consistently
Many benchmarks use test/common/tmpdir. This changes 3 benchmarks that use NODE_TMPDIR to also use test/common/tmpdir. This is necessary in preparation for the next commit that changes tmpdir to delete tmpdir.path when the Node.js process exits. Thus, if multiple benchmarks are run sequentially, the ones that use tmpdir will remove the directory and the ones changed here would fail because it does not exist. This happens when running test/benchmark. Note: to explicitly select a directory for tmpdir, use NODE_TEST_DIR.
Configuration menu - View commit details
-
Copy full SHA for a20031f - Browse repository at this point
Copy the full SHA a20031fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a686feb - Browse repository at this point
Copy the full SHA a686febView commit details -
fixup! test: clean tmpdir on process exit
Suggestions by Rich Trott
Configuration menu - View commit details
-
Copy full SHA for 91b6d55 - Browse repository at this point
Copy the full SHA 91b6d55View commit details -
Configuration menu - View commit details
-
Copy full SHA for d68f316 - Browse repository at this point
Copy the full SHA d68f316View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2423e41 - Browse repository at this point
Copy the full SHA 2423e41View commit details -
Configuration menu - View commit details
-
Copy full SHA for debcba4 - Browse repository at this point
Copy the full SHA debcba4View commit details -
fixup! test: clean tmpdir on process exit
Fixes for Linux open files
Configuration menu - View commit details
-
Copy full SHA for b339245 - Browse repository at this point
Copy the full SHA b339245View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c67878 - Browse repository at this point
Copy the full SHA 3c67878View commit details
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.