Use GH action commands to group/collapse filtered output

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22678)
This commit is contained in:
Neil Horman 2023-12-19 06:36:02 -05:00
parent d1093fa92c
commit 5528bfbc64
1 changed files with 9 additions and 2 deletions

View File

@ -216,13 +216,20 @@ $eres = eval {
my @asan_array = split("\n", $output_buffer);
foreach (@asan_array) {
if ($_ =~ /.*Indirect leak of.*/ == 1) {
if ($in_indirect != 1) {
print "::group::Indirect Leaks\n";
}
$in_indirect = 1;
} else {
}
print "$_\n";
if ($_ =~ /.*Indirect leak of.*/ != 1) {
if ($_ =~ /^ #.*/ == 0) {
if ($in_indirect != 0) {
print "\n::endgroup::\n";
}
$in_indirect = 0;
}
}
print "$_\n" if !$in_indirect;
}
} else {
print $output_buffer if !$is_ok;