Bug-Fix coverage output
This commit is contained in:
parent
8dfadea495
commit
034b9db5a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user