From 5528bfbc647c68b6e03262099830ddd1c49dfa23 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Tue, 19 Dec 2023 06:36:02 -0500 Subject: Use GH action commands to group/collapse filtered output Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22678) --- test/run_tests.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/run_tests.pl') 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; -- cgit v1.2.3