Skip to content

Commit

Permalink
Merge branch 'adoptium:master' into modes
Browse files Browse the repository at this point in the history
  • Loading branch information
varshm16 authored Apr 10, 2024
2 parents a91cbca + 2326826 commit 392c5ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/resultsSum.pl
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ sub resultReporter {
$endTime = $1;
$tapString .= " duration_ms: " . ($endTime - $startTime) . "\n ...\n";
last;
} elsif ($result =~ /(Test results: .*)(passed|skipped|failed|error)(: \d{1,}$)/) {
} elsif ($result =~ /(Test results: .*)(passed|skipped|failed|error)(: .*\d{1,}$)/) {
$testCasesPerTargetSummary = $result;
chomp($testCasesPerTargetSummary);
push (@testCasesResults, $result);
} elsif ($result eq ($testName . "_PASSED\n")) {
$numOfPassed++;
Expand All @@ -160,7 +161,7 @@ sub resultReporter {
if ( $testCasesPerTargetSummary ) {
$summarySuffix = " - " . $testCasesPerTargetSummary . " ";
$tapString .= " output:\n |\n";
$tapString .= " " . $testCasesPerTargetSummary;
$tapString .= " " . $testCasesPerTargetSummary . "\n";
}

push (@passed, $testName . $summarySuffix . $successRate);
Expand Down Expand Up @@ -442,6 +443,10 @@ ()
}
}
}

for (keys %testCasesSummary ) {
while ($testCasesSummary{$_} =~ s/^(\d+)(\d{3})/$1,$2/) {}
}

$testCaseResults = "TESTCASES RESULTS SUMMARY: passed: " . $testCasesSummary{'passed: '} . "; failed: " . $testCasesSummary{'failed: '} . "; error: " . $testCasesSummary{'error: '} . "; skipped: " . $testCasesSummary{'skipped: '};
return $testCaseResults;
Expand Down

0 comments on commit 392c5ec

Please sign in to comment.