| 520 | class MonochromeProgressIndicator(CompactProgressIndicator): |
| 521 | |
| 522 | def __init__(self, cases, flaky_tests_mode, measure_flakiness): |
| 523 | templates = { |
| 524 | 'status_line': "[%(mins)02i:%(secs)02i|%%%(remaining) 4d|+%(passed) 4d|-%(failed) 4d]: %(test)s", |
| 525 | 'stdout': '%s', |
| 526 | 'stderr': '%s', |
| 527 | 'clear': lambda last_line_length: ("\r" + (" " * last_line_length) + "\r"), |
| 528 | 'max_length': 78 |
| 529 | } |
| 530 | super(MonochromeProgressIndicator, self).__init__(cases, flaky_tests_mode, measure_flakiness, templates) |
| 531 | |
| 532 | def ClearLine(self, last_line_length): |
| 533 | print(("\r" + (" " * last_line_length) + "\r"), end='') |