benchmark: Fix execArgv handling

Bug in 01f3b46 causes the same benchmark to be run repeatedly.

Not so useful for the compare scripts.
This commit is contained in:
isaacs 2013-08-31 17:58:17 -07:00
parent 01f3b468a9
commit 00a1d3633c

View File

@ -31,8 +31,7 @@ function runBenchmarks() {
console.error(type + '/' + test);
test = path.resolve(dir, test);
var a = process.execArgv || [];
a.push(test);
var a = (process.execArgv || []).concat(test);
var child = spawn(process.execPath, a, { stdio: 'inherit' });
child.on('close', function(code) {
if (code)