From: Alex Lam S.L Date: Fri, 2 Oct 2020 15:43:38 +0000 (+0100) Subject: report immediate `ufuzz` failure from Pull Request (#4166) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=35465d590eda4074fd9df0e640a8c0934e760d9b;p=UglifyJS.git report immediate `ufuzz` failure from Pull Request (#4166) --- diff --git a/test/ufuzz/job.js b/test/ufuzz/job.js index e4d9ece7..20f6ee0e 100644 --- a/test/ufuzz/job.js +++ b/test/ufuzz/job.js @@ -57,7 +57,13 @@ function run() { function respawn() { console.log(stdout.replace(/[^\r\n]*\r/g, "")); clearInterval(log); - if (!iterations) spawn(); + if (!iterations) { + spawn(); + } else if (process.exitCode) { + tasks.forEach(function(kill) { + kill(); + }); + } } function trap(data) {