From 35cb22ec06a8261b12a56bada3e7f98d78857f29 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Tue, 15 Nov 2022 11:46:42 -0500 Subject: [PATCH] Update to two lines match to make the parsing more reliable Signed-off-by: Sophia Guo --- scripts/resultsSum.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/resultsSum.pl b/scripts/resultsSum.pl index f0773d0f..674a6b21 100644 --- a/scripts/resultsSum.pl +++ b/scripts/resultsSum.pl @@ -157,13 +157,9 @@ sub resultReporter { $tapString .= " ---\n"; if (($diagnostic eq 'failure') || ($diagnostic eq 'all')) { if ($buildList =~ /openjdk/) { - my @lines = split('\\n', $output); my $failureTests = ""; - foreach my $line (@lines) - { - if ( $line =~ /TEST: /) { - $failureTests .= $line . "\n"; - } + while ( $output =~ /([-]{50}.)(TEST: )(.*?)(\.java|\.sh)/sg ) { + push(@failureTests, "$2$3$4\n"); } if ( $failureTests eq "" ) { # Output of dump or other non-test failures