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

lib: redirect tmpdir for modules being tested #706

Merged
merged 1 commit into from
Apr 13, 2019

Conversation

richardlau
Copy link
Member

The test for some modules write into os.tmpdir() and do not always
clean up afterwards which can fill the temporary directory on our CI.
Redirect the temporary directory for modules being tested into CITGM's
tmpDir which gets removed at the end of the run.

Refs: nodejs/build#1757

Checklist
  • npm test passes
  • tests are included
  • contribution guidelines followed
    here

test/npm/test-npm-test.js Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Apr 12, 2019

Codecov Report

Merging #706 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #706      +/-   ##
==========================================
+ Coverage   94.77%   94.79%   +0.01%     
==========================================
  Files          27       27              
  Lines         881      884       +3     
==========================================
+ Hits          835      838       +3     
  Misses         46       46
Impacted Files Coverage Δ
lib/create-options.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75068e9...1e22464. Read the comment docs.

The test for some modules write into `os.tmpdir()` and do not always
clean up afterwards which can fill the temporary directory on our CI.
Redirect the temporary directory for modules being tested into CITGM's
`tmpDir` which gets removed at the end of the run.

Refs: nodejs/build#1757
@richardlau richardlau merged commit 4974854 into nodejs:master Apr 13, 2019
@richardlau richardlau deleted the redirecttmp branch April 14, 2019 23:28
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.

3 participants