From 35465d590eda4074fd9df0e640a8c0934e760d9b Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 2 Oct 2020 16:43:38 +0100 Subject: [PATCH] report immediate `ufuzz` failure from Pull Request (#4166) --- test/ufuzz/job.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.34.1