| 58 | |
| 59 | |
| 60 | class ProgressProc(base.TestProcObserver): |
| 61 | |
| 62 | def __init__(self, context, options, test_count): |
| 63 | super(ProgressProc, self).__init__() |
| 64 | self.procs = [ |
| 65 | PROGRESS_INDICATORS[options.progress](context, options, test_count) |
| 66 | ] |
| 67 | if options.log_test_schedule: |
| 68 | self.procs.insert( |
| 69 | 0, |
| 70 | TestScheduleIndicator(context, options, test_count)) |
| 71 | if options.json_test_results: |
| 72 | self.procs.insert( |
| 73 | 0, |
| 74 | JsonTestProgressIndicator(context, options, test_count)) |
| 75 | sink = rdb_sink() |
| 76 | if sink: |
| 77 | self.procs.append(ResultDBIndicator(context, options, test_count, sink)) |
| 78 | self._requirement = max(proc._requirement for proc in self.procs) |
| 79 | |
| 80 | def _on_result_for(self, test, result): |
| 81 | for proc in self.procs: |
| 82 | proc.on_test_result(test, result) |
| 83 | |
| 84 | def finished(self): |
| 85 | for proc in self.procs: |
| 86 | proc.finished() |
| 87 | |
| 88 | def _on_heartbeat(self): |
| 89 | for proc in self.procs: |
| 90 | proc.on_heartbeat() |
| 91 | |
| 92 | def _on_event(self, event): |
| 93 | for proc in self.procs: |
| 94 | proc.on_event(event) |
no outgoing calls
no test coverage detected
searching dependent graphs…