From e34725515ff94667a634c3392f3a1e75ae8fdd52 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 26 Apr 2017 08:40:15 +0200 Subject: [PATCH] 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. --- test/parallel/test-cli-node-options.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index 08c8f63f79196c..90e995af9beb9f 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');