[test minor] Use process.argv[0]
when spawning processes
Previous implementation used `node`.
This commit is contained in:
parent
07f8c3e558
commit
51700cae88
1 changed files with 3 additions and 2 deletions
|
@ -43,11 +43,12 @@ exports.assertSystemConf = function (options) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn('node', [options.script].concat(options.argv), { env: env })
|
spawn(process.argv[0], [options.script].concat(options.argv), { env: env })
|
||||||
.stdout.once('data', this.callback.bind(this, null));
|
.stdout.once('data', this.callback.bind(this, null));
|
||||||
},
|
},
|
||||||
"should respond with the value passed into the script": function (_, data) {
|
"should respond with the value passed into the script": function (_, data) {
|
||||||
assert.equal(data.toString(), 'foobar');
|
assert.equal(data.toString(), 'foobar');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue