| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 """A command to fetch new baselines from try jobs for a Rietveld issue. | 5 """A command to fetch new baselines from try jobs for a Rietveld issue. |
| 6 | 6 |
| 7 This command interacts with the Rietveld API to get information about try jobs | 7 This command interacts with the Rietveld API to get information about try jobs |
| 8 with layout test results. | 8 with layout test results. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 failure_results = layout_test_results.unexpected_mismatch_results() | 183 failure_results = layout_test_results.unexpected_mismatch_results() |
| 184 missing_results = layout_test_results.missing_results() | 184 missing_results = layout_test_results.missing_results() |
| 185 return sorted(r.test_name() for r in failure_results + missing_results) | 185 return sorted(r.test_name() for r in failure_results + missing_results) |
| 186 | 186 |
| 187 @staticmethod | 187 @staticmethod |
| 188 def _log_test_prefix_list(test_prefix_list): | 188 def _log_test_prefix_list(test_prefix_list): |
| 189 """Logs the tests to download new baselines for.""" | 189 """Logs the tests to download new baselines for.""" |
| 190 if not test_prefix_list: | 190 if not test_prefix_list: |
| 191 _log.info('No tests to rebaseline; exiting.') | 191 _log.info('No tests to rebaseline; exiting.') |
| 192 return | 192 return |
| 193 _log.info('Tests to rebaseline:') | 193 _log.debug('Tests to rebaseline:') |
| 194 for test, builds in test_prefix_list.iteritems(): | 194 for test, builds in test_prefix_list.iteritems(): |
| 195 builds_str = ', '.join(sorted('%s (%s)' % (b.builder_name, b.build_n
umber) for b in builds)) | 195 _log.debug(' %s:', test) |
| 196 _log.info(' %s: %s', test, builds_str) | 196 for build in sorted(builds): |
| 197 _log.debug(' %s', build) |
| OLD | NEW |