diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-11 15:10:00 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-14 16:05:48 +0300 |
commit | 945f20808143d954fea73e4ac3a0d71cf73c9b2c (patch) | |
tree | 23bdae68aa818091fbcb22c29f4b878f60cd99ee /test/parallel/test-cli-eval.js | |
parent | 9516aa19c16cbfda6917c4fb8d6aecf2da8a16aa (diff) | |
download | android-node-v8-945f20808143d954fea73e4ac3a0d71cf73c9b2c.tar.gz android-node-v8-945f20808143d954fea73e4ac3a0d71cf73c9b2c.tar.bz2 android-node-v8-945f20808143d954fea73e4ac3a0d71cf73c9b2c.zip |
test: make the rest of tests path-independent
Permit spaces in paths to a Node.js executable and test scripts.
PR-URL: https://github.com/nodejs/node/pull/12972
Fixes: https://github.com/nodejs/node/issues/12773
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-cli-eval.js')
-rw-r--r-- | test/parallel/test-cli-eval.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-cli-eval.js b/test/parallel/test-cli-eval.js index 0ec561ff0d..7c7ced62fd 100644 --- a/test/parallel/test-cli-eval.js +++ b/test/parallel/test-cli-eval.js @@ -220,7 +220,7 @@ child.exec(`${nodejs} --use-strict -p process.execArgv`, // Ensure that arguments are successfully passed to a script. // The first argument after '--' should be interpreted as a script // filename. - const filecmd = `${nodejs} -- ${__filename} ${args}`; + const filecmd = `${nodejs} -- "${__filename}" ${args}`; child.exec(filecmd, common.mustCall(function(err, stdout, stderr) { assert.strictEqual(stdout, `${args}\n`); assert.strictEqual(stderr, ''); |