Uh oh!
There was an error while loading. Please reload this page.
test: use tmp directory in chdir test - #2589
Conversation
brendanashworth
commented
Aug 28, 2015
LGTM if CI is happy |
Fishrock123
commented
Aug 28, 2015
cc @nodejs/build this moves another test to |
mscdex
commented
Sep 14, 2015
I think the filename of this test should be renamed to |
This patch - makes chdir test to use the tmp directory - moves the test to parallel - renames the file to test-process-chdir as chdir is in process module
24b70cf to
263bdcbComparethefourtheye
commented
Sep 15, 2015
@mscdex Good call. Thanks :-) Renamed the file. |
thefourtheye
commented
Sep 15, 2015
New CI Run: https://ci.nodejs.org/job/node-test-commit/581/ |
There was a problem hiding this comment.
I think this is effectively unsafe after using common.tmpDir?
Isn't it possible that your tmpDir is different then?
There was a problem hiding this comment.
@Fishrock123 refresh just removes the directory and creates it
exports.refreshTmpDir=function(){rimrafSync(exports.tmpDir);fs.mkdirSync(exports.tmpDir);};The name is actually decided when we load the module itself,
if(process.env.TEST_THREAD_ID){// Distribute ports in parallel testsif(!process.env.NODE_COMMON_PORT)exports.PORT+=+process.env.TEST_THREAD_ID*100;exports.tmpDirName+='.'+process.env.TEST_THREAD_ID;}exports.tmpDir=path.join(exports.testDir,exports.tmpDirName);Since we are just resolving the path before that, we are safe here.
thefourtheye
commented
Sep 15, 2015
Test is passing in all the environments. @Fishrock123@mscdex LGTY? |
Trott
commented
Sep 15, 2015
LGTM if CI is happy |
This patch - makes chdir test to use the tmp directory - moves the test to parallel - renames the file to test-process-chdir as chdir is in process module PR-URL: #2589 Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
thefourtheye
commented
Sep 16, 2015
Thanks for the review people. Landed in 9aa6a43 |
This patch - makes chdir test to use the tmp directory - moves the test to parallel - renames the file to test-process-chdir as chdir is in process module PR-URL: nodejs#2589 Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This patch makes chdir test to use the tmp directory and moves the test
to parallel.
CI Run: https://jenkins-iojs.nodesource.com/job/node-test-pull-request/198/