mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
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>
This commit is contained in:
parent
9516aa19c1
commit
945f208081
14 changed files with 32 additions and 31 deletions
|
@ -42,13 +42,13 @@ const filename = require('path').join(common.tmpDir, 'big');
|
|||
let server;
|
||||
|
||||
function executeRequest(cb) {
|
||||
cp.exec([process.execPath,
|
||||
__filename,
|
||||
cp.exec([`"${process.execPath}"`,
|
||||
`"${__filename}"`,
|
||||
'request',
|
||||
server.address().port,
|
||||
'|',
|
||||
process.execPath,
|
||||
__filename,
|
||||
`"${process.execPath}"`,
|
||||
`"${__filename}"`,
|
||||
'shasum' ].join(' '),
|
||||
(err, stdout, stderr) => {
|
||||
assert.ifError(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue