diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-04-26 08:40:15 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2017-04-28 05:37:27 +0200 |
commit | a4fd9e5e6d43028b33b8ff5c1bea3b4998573d5a (patch) | |
tree | 47c6310eb15acca709e7d2c85132de7eaaebd8de /test/parallel/test-cli-node-options.js | |
parent | 76327613aff38f53c017eb26b2209fb1ca2b81b9 (diff) | |
download | android-node-v8-a4fd9e5e6d43028b33b8ff5c1bea3b4998573d5a.tar.gz android-node-v8-a4fd9e5e6d43028b33b8ff5c1bea3b4998573d5a.tar.bz2 android-node-v8-a4fd9e5e6d43028b33b8ff5c1bea3b4998573d5a.zip |
test: chdir before running test-cli-node-options
When test-cli-node-options is run it uses the --trace-events-enabled
option which generates a file named node_trace.1.log. This commit
changes the working directory to the test tmp directory to avoid this
file being created in the project root.
PR-URL: https://github.com/nodejs/node/pull/12660
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-cli-node-options.js')
-rw-r--r-- | test/parallel/test-cli-node-options.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index 08c8f63f79..90e995af9b 100644 --- a/test/parallel/test-cli-node-options.js +++ b/test/parallel/test-cli-node-options.js @@ -8,6 +8,9 @@ if (process.config.variables.node_without_node_options) const assert = require('assert'); const exec = require('child_process').execFile; +common.refreshTmpDir(); +process.chdir(common.tmpDir); + disallow('--version'); disallow('-v'); disallow('--help'); |