Skip to content

Commit

Permalink
Update to two lines match to make the parsing more reliable
Browse files Browse the repository at this point in the history
Signed-off-by: Sophia Guo <sophia.gwf@gmail.com>
  • Loading branch information
sophia-guo committed Nov 15, 2022
1 parent cb963af commit 35cb22e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/resultsSum.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 35cb22e

Please sign in to comment.