Skip to content

Commit

Permalink
Fixing the regex
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Farley <adfarley@redhat.com>
  • Loading branch information
adamfarley committed Nov 1, 2024
1 parent e99db47 commit fc48ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/nightly_build_and_test_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ def getReproducibilityPercentage(String jdkVersion, String trssId, String trssUR
if ( testOutput.contains("Running test "+reproTestName) ) {
platformResult = "???% - ${reproTestName} ran but failed to produce a percentage. Test Link: " + testJob.buildUrl
// Now we know the test ran,
def matcherObject = testOutput =~ /ReproduciblePercent = [0-9]+\.?[0-9]* %/
def matcherObject = testOutput =~ /ReproduciblePercent = (100|[0-9][0-9]?\.?[0-9]?[0-9]?) %/
if ( matcherObject ) {
platformResult = matcherObject[0] =~ /[0-9]+\.?[0-9]* %/
println((matcherObject[0] =~ /(100|[0-9][0-9]?\.?[0-9]?[0-9]?) %/)[0][0])
}
}
}
Expand Down

0 comments on commit fc48ccd

Please sign in to comment.