Skip to content

Commit 9ff46e1

Browse files
author
Sylvain MARIE
committed
Fixed ci badge generator
1 parent f3abe33 commit 9ff46e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci_tools/generate-junit-badge.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import sys
2+
from math import floor
3+
24
try:
35
# python 3
46
from urllib.parse import quote_plus
@@ -34,7 +36,7 @@ def get_test_stats(junit_xml='reports/junit/junit.xml' # type: str
3436
failed = len(tr.failures)
3537
success = runned - failed
3638

37-
success_percentage = round(success * 100 / runned)
39+
success_percentage = floor(success * 100 / runned)
3840

3941
return TestStats(success_percentage, success, runned, skipped)
4042

0 commit comments

Comments
 (0)