From 20f6cf846759e43ae66c6008b1f1b7b673b460a5 Mon Sep 17 00:00:00 2001 From: Valery Kholodkov Date: Sun, 29 Nov 2015 14:03:33 +0100 Subject: [PATCH 1/2] Force serial execution of forked processes --- cli.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli.js b/cli.js index f1218df28..4a8bb8052 100755 --- a/cli.js +++ b/cli.js @@ -212,9 +212,8 @@ function init(files) { fileCount = files.length; - var tests = files.map(run); - - return Promise.all(tests); + return cli.flags.serial ? Promise.mapSeries(files, run) + : Promise.all(files.map(run)); }); } From 9ea5061e54e478293f7d1ed7f10660b335fa7751 Mon Sep 17 00:00:00 2001 From: Valery Kholodkov Date: Sun, 29 Nov 2015 14:18:07 +0100 Subject: [PATCH 2/2] Fix tabs --- cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 4a8bb8052..b9f5490aa 100755 --- a/cli.js +++ b/cli.js @@ -212,8 +212,8 @@ function init(files) { fileCount = files.length; - return cli.flags.serial ? Promise.mapSeries(files, run) - : Promise.all(files.map(run)); + return cli.flags.serial ? Promise.mapSeries(files, run) + : Promise.all(files.map(run)); }); }