summaryrefslogtreecommitdiff
path: root/test/parallel/test-stdout-to-file.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-12-24 22:38:11 -0800
committerMyles Borins <mylesborins@google.com>2018-03-29 23:28:22 -0400
commita1b0d5da07b346e7f681df52269d7759572b6413 (patch)
treede8ef9e7618c76c0dec8df2cef30c5393c599120 /test/parallel/test-stdout-to-file.js
parent965b56a34e55fd1a960d9565eca25c4903d380d5 (diff)
downloadnode-new-a1b0d5da07b346e7f681df52269d7759572b6413.tar.gz
test: move tmpdir to submodule of common
Move tmpdir functionality to its own module (common/tmpdir). Backport-PR-URL: https://github.com/nodejs/node/pull/19488 PR-URL: https://github.com/nodejs/node/pull/17856 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/parallel/test-stdout-to-file.js')
-rw-r--r--test/parallel/test-stdout-to-file.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-stdout-to-file.js b/test/parallel/test-stdout-to-file.js
index 6869fafa1c..a02531ca41 100644
--- a/test/parallel/test-stdout-to-file.js
+++ b/test/parallel/test-stdout-to-file.js
@@ -5,12 +5,13 @@ const path = require('path');
const childProcess = require('child_process');
const fs = require('fs');
const fixtures = require('../common/fixtures');
+const tmpdir = require('../common/tmpdir');
const scriptString = fixtures.path('print-chars.js');
const scriptBuffer = fixtures.path('print-chars-from-buffer.js');
-const tmpFile = path.join(common.tmpDir, 'stdout.txt');
+const tmpFile = path.join(tmpdir.path, 'stdout.txt');
-common.refreshTmpDir();
+tmpdir.refresh();
function test(size, useBuffer, cb) {
const cmd = `"${process.argv[0]}" "${