aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-10-02 16:43:38 +0100
committerGitHub <noreply@github.com>2020-10-02 23:43:38 +0800
commit35465d590eda4074fd9df0e640a8c0934e760d9b (patch)
tree79d28c37d42bf1608ca52abdeb694211409e82d1
parentccd91b9952c986ec071f4bf7a552a1dd09b6f570 (diff)
downloadtracifyjs-35465d590eda4074fd9df0e640a8c0934e760d9b.tar.gz
tracifyjs-35465d590eda4074fd9df0e640a8c0934e760d9b.zip
report immediate `ufuzz` failure from Pull Request (#4166)
-rw-r--r--test/ufuzz/job.js8
1 files changed, 7 insertions, 1 deletions
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) {