summaryrefslogtreecommitdiffstats
path: root/test/run_tests.pl
diff options
context:
space:
mode:
authorNeil Horman <nhorman@openssl.org>2023-12-19 12:36:02 +0100
committerNeil Horman <nhorman@openssl.org>2023-12-21 15:05:42 +0100
commit5528bfbc647c68b6e03262099830ddd1c49dfa23 (patch)
tree177b1f89d4f94c323a08aff9dc640b896fa4999c /test/run_tests.pl
parentaugment test/run_tests.pl to filter indirect leaks (diff)
downloadopenssl-5528bfbc647c68b6e03262099830ddd1c49dfa23.tar.xz
openssl-5528bfbc647c68b6e03262099830ddd1c49dfa23.zip
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)
Diffstat (limited to 'test/run_tests.pl')
-rw-r--r--test/run_tests.pl11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/run_tests.pl b/test/run_tests.pl
index 1f4406a49f..89d7fafb72 100644
--- a/test/run_tests.pl
+++ b/test/run_tests.pl
@@ -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;