OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import logging | 5 import logging |
6 import os | 6 import os |
7 import posixpath | 7 import posixpath |
8 import re | 8 import re |
9 import time | 9 import time |
10 | 10 |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 if not tombstones_url: | 402 if not tombstones_url: |
403 resolved_tombstones = tombstones.ResolveTombstones( | 403 resolved_tombstones = tombstones.ResolveTombstones( |
404 device, | 404 device, |
405 resolve_all_tombstones=True, | 405 resolve_all_tombstones=True, |
406 include_stack_symbols=False, | 406 include_stack_symbols=False, |
407 wipe_tombstones=True) | 407 wipe_tombstones=True) |
408 stream_name = 'tombstones_%s_%s' % ( | 408 stream_name = 'tombstones_%s_%s' % ( |
409 time.strftime('%Y%m%dT%H%M%S', time.localtime()), | 409 time.strftime('%Y%m%dT%H%M%S', time.localtime()), |
410 device.serial) | 410 device.serial) |
411 tombstones_url = logdog_helper.text( | 411 tombstones_url = logdog_helper.text( |
412 stream_name, resolved_tombstones) | 412 stream_name, '\n'.join(resolved_tombstones)) |
413 result.SetLink('tombstones', tombstones_url) | 413 result.SetLink('tombstones', tombstones_url) |
414 return results, None | 414 return results, None |
415 | 415 |
416 #override | 416 #override |
417 def _ShouldRetry(self, test): | 417 def _ShouldRetry(self, test): |
418 if 'RetryOnFailure' in test.get('annotations', {}): | 418 if 'RetryOnFailure' in test.get('annotations', {}): |
419 return True | 419 return True |
420 | 420 |
421 # TODO(jbudorick): Remove this log message once @RetryOnFailure has been | 421 # TODO(jbudorick): Remove this log message once @RetryOnFailure has been |
422 # enabled for a while. See crbug.com/619055 for more details. | 422 # enabled for a while. See crbug.com/619055 for more details. |
(...skipping 18 matching lines...) Expand all Loading... |
441 if k in annotations: | 441 if k in annotations: |
442 timeout = v | 442 timeout = v |
443 break | 443 break |
444 else: | 444 else: |
445 logging.warning('Using default 1 minute timeout for %s', test_name) | 445 logging.warning('Using default 1 minute timeout for %s', test_name) |
446 timeout = 60 | 446 timeout = 60 |
447 | 447 |
448 timeout *= cls._GetTimeoutScaleFromAnnotations(annotations) | 448 timeout *= cls._GetTimeoutScaleFromAnnotations(annotations) |
449 | 449 |
450 return timeout | 450 return timeout |
OLD | NEW |