report immediate ufuzz failure from Pull Request

This commit is contained in:
alexlamsl 2020-10-02 22:32:27 +08:00
parent 47a5e6e17a
commit c1e81fc1df

View File

@ -57,7 +57,13 @@ function run() {
function respawn() { function respawn() {
console.log(stdout.replace(/[^\r\n]*\r/g, "")); console.log(stdout.replace(/[^\r\n]*\r/g, ""));
clearInterval(log); clearInterval(log);
if (!iterations) spawn(); if (!iterations) {
spawn();
} else if (process.exitCode) {
tasks.forEach(function(kill) {
kill();
});
}
} }
function trap(data) { function trap(data) {