diff options
author | Rich Trott <rtrott@gmail.com> | 2017-11-22 14:02:19 -0800 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2017-11-28 16:17:53 -0500 |
commit | ecbae568b7818ef056fc3fe9cc6e5502fb9c9269 (patch) | |
tree | 213c21c5cf202fde782c849edbf64479075580cf /test/common/index.js | |
parent | 5ebcb7fcaff25e982d1d800f428682152ffa9298 (diff) | |
download | android-node-v8-ecbae568b7818ef056fc3fe9cc6e5502fb9c9269.tar.gz android-node-v8-ecbae568b7818ef056fc3fe9cc6e5502fb9c9269.tar.bz2 android-node-v8-ecbae568b7818ef056fc3fe9cc6e5502fb9c9269.zip |
test: remove common.tmpDirName
`common.tmpDirName` is used in only one test and can be replaced with
`path.basename(common.tmpDir)`.
PR-URL: https://github.com/nodejs/node/pull/17266
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/common/index.js b/test/common/index.js index ee2de37bb7..fc3a055c1b 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -40,7 +40,7 @@ exports.fixturesDir = fixturesDir; // Using a `.` prefixed name, which is the convention for "hidden" on POSIX, // gets tools to ignore it by default or by simple rules, especially eslint. -exports.tmpDirName = '.tmp'; +let tmpDirName = '.tmp'; // PORT should match the definition in test/testpy/__init__.py. exports.PORT = +process.env.NODE_COMMON_PORT || 12346; exports.isWindows = process.platform === 'win32'; @@ -165,9 +165,9 @@ exports.refreshTmpDir = function() { if (process.env.TEST_THREAD_ID) { exports.PORT += process.env.TEST_THREAD_ID * 100; - exports.tmpDirName += `.${process.env.TEST_THREAD_ID}`; + tmpDirName += `.${process.env.TEST_THREAD_ID}`; } -exports.tmpDir = path.join(testRoot, exports.tmpDirName); +exports.tmpDir = path.join(testRoot, tmpDirName); let opensslCli = null; let inFreeBSDJail = null; |