jenkinsfile
This commit is contained in:
parent
445450c115
commit
651b3baaa0
@ -6,7 +6,7 @@ with open("helper.txt", "r") as f:
|
||||
for line in f:
|
||||
if re.match(r'^id:.*', line):
|
||||
wer.write(line + " = ")
|
||||
elif re.match(r'^Scores: (#C #S #D #I).*', line):
|
||||
elif re.match(r'^Scores:.*', line):
|
||||
helper = line.replace("Scores: (#C #S #D #I) ", "").split()
|
||||
sum = helper[0] + helper[1] + helper[2] + helper[3]
|
||||
wer.write(str((helper[0]/sum) * 100) + "%\n")
|
||||
|
Loading…
Reference in New Issue
Block a user