(self, test, subtest, result)
| 29 | return self._send_next_subtest(test) |
| 30 | |
| 31 | def _result_for(self, test, subtest, result): |
| 32 | # First result |
| 33 | if subtest.procid[-2:] == '-1': |
| 34 | # Passed, no reruns |
| 35 | if not result.has_unexpected_output: |
| 36 | self._send_result(test, result) |
| 37 | return |
| 38 | |
| 39 | self._rerun[test.procid] = 0 |
| 40 | |
| 41 | results = self._results[test.procid] |
| 42 | results.append(result) |
| 43 | |
| 44 | if not self.is_stopped and self._needs_rerun(test, result): |
| 45 | self._rerun[test.procid] += 1 |
| 46 | if self._rerun_total_left is not None: |
| 47 | self._rerun_total_left -= 1 |
| 48 | self._send_next_subtest(test, self._rerun[test.procid]) |
| 49 | else: |
| 50 | result = RerunResult.create(results) |
| 51 | self._finalize_test(test) |
| 52 | self._send_result(test, result) |
| 53 | |
| 54 | def _needs_rerun(self, test, result): |
| 55 | # TODO(majeski): Limit reruns count for slow tests. |
nothing calls this directly
no test coverage detected