Skip to content

Commit

Permalink
Update the result sum match to be more precise (adoptium#4511)
Browse files Browse the repository at this point in the history
- to filter user commented summary

Signed-off-by: renfeiw <[email protected]>
  • Loading branch information
renfeiw authored Apr 18, 2023
1 parent b5ded17 commit f214865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def runTest( ) {
}

def resultSum = [:]
def matcher = manager.getLogMatcher(".*(TOTAL: \\d+)\\s*(EXECUTED: \\d+)\\s*(PASSED: \\d+)\\s*(FAILED: \\d+)\\s*(DISABLED: \\d+)?\\s*(SKIPPED: \\d+).*")
def matcher = manager.getLogMatcher(".*(TOTAL: \\d+)\\s*(EXECUTED: \\d+)\\s*(PASSED: \\d+)\\s*(FAILED: \\d+)\\s*(DISABLED: \\d+)?\\s*(SKIPPED: \\d+)\\s*\$")
if (matcher?.matches()) {
for (int i = 1; i < matcher.groupCount(); i++) {
def matchVals = matcher.group(i).split(": ")
Expand Down

0 comments on commit f214865

Please sign in to comment.