From 68b5c797aeedccfcc571b27658497690a349d77c Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Fri, 20 May 2016 13:40:34 -0700 Subject: [PATCH] runtests-parallel does not fail when a single bucket fails --- Jakefile.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jakefile.js b/Jakefile.js index f39fcba0705..1515e1a4d2e 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -729,8 +729,11 @@ function runConsoleTests(defaultReporter, defaultSubsets) { tests = subsetRegex ? ' -g "' + subsetRegex + '"' : ''; var cmd = "mocha" + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run; console.log(cmd); - exec(cmd, function () { + function finish() { deleteTemporaryProjectOutput(); + complete(); + } + exec(cmd, function () { if (lintFlag && i === 0) { var lint = jake.Task['lint']; lint.addListener('complete', function () { @@ -738,10 +741,8 @@ function runConsoleTests(defaultReporter, defaultSubsets) { }); lint.invoke(); } - else { - complete(); - } - }); + finish(); + }, finish); }); }