OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 import logging | 6 import logging |
7 | 7 |
8 | 8 |
9 # Language values match constants in Sponge protocol buffer (sponge.proto). | 9 # Language values match constants in Sponge protocol buffer (sponge.proto). |
10 JAVA = 5 | 10 JAVA = 5 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 self._Log(sorted(self.failed)) | 105 self._Log(sorted(self.failed)) |
106 if self.crashed: | 106 if self.crashed: |
107 logging.critical('Crashed:') | 107 logging.critical('Crashed:') |
108 self._Log(sorted(self.crashed)) | 108 self._Log(sorted(self.crashed)) |
109 if self.unknown: | 109 if self.unknown: |
110 logging.critical('Unknown:') | 110 logging.critical('Unknown:') |
111 self._Log(sorted(self.unknown)) | 111 self._Log(sorted(self.unknown)) |
112 if not self.GetAllBroken(): | 112 if not self.GetAllBroken(): |
113 logging.critical('Passed') | 113 logging.critical('Passed') |
114 logging.critical('*' * 80) | 114 logging.critical('*' * 80) |
| 115 |
| 116 # Summarize in the test output. |
| 117 summary_string = 'Summary:\n' |
| 118 summary_string += 'RAN=%d\n' % (len(self.ok) + len(self.failed) + |
| 119 len(self.crashed) + len(self.unknown)) |
| 120 summary_string += 'PASSED=%d\n' % (len(self.ok)) |
| 121 summary_string += 'FAILED=%d %s\n' % (len(self.failed), |
| 122 [t.name for t in self.failed]) |
| 123 summary_string += 'CRASHED=%d %s\n' % (len(self.crashed), |
| 124 [t.name for t in self.crashed]) |
| 125 summary_string += 'UNKNOWN=%d %s\n' % (len(self.unknown), |
| 126 [t.name for t in self.unknown]) |
| 127 logging.critical(summary_string) |
| 128 return summary_string |
OLD | NEW |