Browse Source

Bug-Fix coverage output

master
Dirk Alders 3 years ago
parent
commit
034b9db5a2
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      output.py

+ 1
- 0
output.py View File

66
 
66
 
67
 def coverage_output(lcov, bcov, length=None):
67
 def coverage_output(lcov, bcov, length=None):
68
     if lcov is None or bcov is None:
68
     if lcov is None or bcov is None:
69
+        length = length or len(STATUS_UNKNOWN)
69
         return (length - len(STATUS_UNKNOWN)) * ' ' + status_output(STATUS_UNKNOWN, termcolors.FAIL)
70
         return (length - len(STATUS_UNKNOWN)) * ' ' + status_output(STATUS_UNKNOWN, termcolors.FAIL)
70
     elif lcov > 90:
71
     elif lcov > 90:
71
         rv = termcolors.OKGREEN + '%3d%% (%3d%%)' % (lcov, bcov) + termcolors.ENDC
72
         rv = termcolors.OKGREEN + '%3d%% (%3d%%)' % (lcov, bcov) + termcolors.ENDC

Loading…
Cancel
Save