]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Use GH action commands to group/collapse filtered output
authorNeil Horman <nhorman@openssl.org>
Tue, 19 Dec 2023 11:36:02 +0000 (06:36 -0500)
committerNeil Horman <nhorman@openssl.org>
Thu, 21 Dec 2023 14:05:42 +0000 (09:05 -0500)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22678)

test/run_tests.pl

index 1f4406a49fa1db9dc77ceba864f3f45ac8e5d828..89d7fafb72566f3cdbe8fe2557726526b2017939 100644 (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;