| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Subclasses of various slave command classes.""" | 6 """Subclasses of various slave command classes.""" |
| 7 | 7 |
| 8 import copy | 8 import copy |
| 9 import os | 9 import os |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 self._GetRevision(), self.getLog('stdio').getText()) | 117 self._GetRevision(), self.getLog('stdio').getText()) |
| 118 | 118 |
| 119 def getText(self, cmd, results): | 119 def getText(self, cmd, results): |
| 120 text_list = self.describe(True) | 120 text_list = self.describe(True) |
| 121 if self._result_text: | 121 if self._result_text: |
| 122 self._result_text.insert(0, '<div class="BuildResultInfo">') | 122 self._result_text.insert(0, '<div class="BuildResultInfo">') |
| 123 self._result_text.append('</div>') | 123 self._result_text.append('</div>') |
| 124 text_list = text_list + self._result_text | 124 text_list = text_list + self._result_text |
| 125 return text_list | 125 return text_list |
| 126 | 126 |
| 127 def evaluateCommand(self, cmd): |
| 128 # If the log processor provides a facility to evaluate its performance, |
| 129 # call it. |
| 130 if self._log_processor and self._log_processor.evaluateCommand: |
| 131 return self._log_processor.evaluateCommand(cmd) |
| 132 |
| 133 # Otherwise, report success by default. |
| 134 return builder.SUCCESS |
| 135 |
| 127 def _CreateReportLinkIfNeccessary(self): | 136 def _CreateReportLinkIfNeccessary(self): |
| 128 if self._log_processor.ReportLink(): | 137 if self._log_processor.ReportLink(): |
| 129 self.addURL('results', "%s" % self._log_processor.ReportLink()) | 138 self.addURL('results', "%s" % self._log_processor.ReportLink()) |
| OLD | NEW |