Skip to content

Commit

Permalink
Merge pull request #17986 from mdoucha/ltp_keep_fail
Browse files Browse the repository at this point in the history
LTP Whitelist: Add keep_fail attribute to whitelist JSON
  • Loading branch information
pevik authored Oct 16, 2023
2 parents fd86b72 + cb4820d commit 5be1d27
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/LTP/WhiteList.pm
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,16 @@ sub override_known_failures {
}
}

my $msg = "Failure in LTP:$suite:$testname is known, overriding to softfail";
bmwqemu::diag($msg);
$testmod->{result} = 'softfail';
$testmod->record_soft_failure_result(join("\n", $msg, ($entry->{message} // ())));
if ($entry->{keep_fail}) {
$testmod->record_resultfile('Known', $entry->{message}, result => 'fail');
}
else {
my $msg = "Failure in LTP:$suite:$testname is known, overriding to softfail";
bmwqemu::diag($msg);
$testmod->{result} = 'softfail';
$testmod->record_soft_failure_result(join("\n", $msg, ($entry->{message} // ())));
}

return 1;
}

Expand Down

0 comments on commit 5be1d27

Please sign in to comment.