From 7ad7501db2f836cb9200ee018ed8a867119f3113 Mon Sep 17 00:00:00 2001 From: Valery Kholodkov Date: Sun, 29 Nov 2015 14:03:33 +0100 Subject: [PATCH] Force serial execution of forked processes, closes #282 --- cli.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli.js b/cli.js index f1218df28..b9f5490aa 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)); }); }