Skip to content

Commit 68b5c79

Browse files
committed
runtests-parallel does not fail when a single bucket fails
1 parent 89ebe5a commit 68b5c79

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Jakefile.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -729,19 +729,20 @@ function runConsoleTests(defaultReporter, defaultSubsets) {
729729
tests = subsetRegex ? ' -g "' + subsetRegex + '"' : '';
730730
var cmd = "mocha" + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run;
731731
console.log(cmd);
732-
exec(cmd, function () {
732+
function finish() {
733733
deleteTemporaryProjectOutput();
734+
complete();
735+
}
736+
exec(cmd, function () {
734737
if (lintFlag && i === 0) {
735738
var lint = jake.Task['lint'];
736739
lint.addListener('complete', function () {
737740
complete();
738741
});
739742
lint.invoke();
740743
}
741-
else {
742-
complete();
743-
}
744-
});
744+
finish();
745+
}, finish);
745746
});
746747
}
747748

0 commit comments

Comments
 (0)