Bug-Fix coverage output

This commit is contained in:
Dirk Alders 2021-03-04 19:17:08 +01:00
parent 8dfadea495
commit 034b9db5a2

View File

@ -66,6 +66,7 @@ def print_info(txt, default_color=termcolors.ENDC):
def coverage_output(lcov, bcov, length=None):
if lcov is None or bcov is None:
length = length or len(STATUS_UNKNOWN)
return (length - len(STATUS_UNKNOWN)) * ' ' + status_output(STATUS_UNKNOWN, termcolors.FAIL)
elif lcov > 90:
rv = termcolors.OKGREEN + '%3d%% (%3d%%)' % (lcov, bcov) + termcolors.ENDC