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:
parent
d1093fa92c
commit
5528bfbc64
@ -216,13 +216,20 @@ $eres = eval {
|
|||||||
my @asan_array = split("\n", $output_buffer);
|
my @asan_array = split("\n", $output_buffer);
|
||||||
foreach (@asan_array) {
|
foreach (@asan_array) {
|
||||||
if ($_ =~ /.*Indirect leak of.*/ == 1) {
|
if ($_ =~ /.*Indirect leak of.*/ == 1) {
|
||||||
|
if ($in_indirect != 1) {
|
||||||
|
print "::group::Indirect Leaks\n";
|
||||||
|
}
|
||||||
$in_indirect = 1;
|
$in_indirect = 1;
|
||||||
} else {
|
}
|
||||||
|
print "$_\n";
|
||||||
|
if ($_ =~ /.*Indirect leak of.*/ != 1) {
|
||||||
if ($_ =~ /^ #.*/ == 0) {
|
if ($_ =~ /^ #.*/ == 0) {
|
||||||
|
if ($in_indirect != 0) {
|
||||||
|
print "\n::endgroup::\n";
|
||||||
|
}
|
||||||
$in_indirect = 0;
|
$in_indirect = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "$_\n" if !$in_indirect;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print $output_buffer if !$is_ok;
|
print $output_buffer if !$is_ok;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user