Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: build/android/pylib/local/device/local_device_instrumentation_test_run.py

Issue 2974163002: Fix the stack script issue when symbolizing tombstones. (Closed)
Patch Set: add todo and crbug; revert changes for intentional crash test case Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 contextlib 5 import contextlib
6 import logging 6 import logging
7 import os 7 import os
8 import posixpath 8 import posixpath
9 import re 9 import re
10 import sys 10 import sys
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 logging.debug(' %s', l) 530 logging.debug(' %s', l)
531 if self._test_instance.store_tombstones: 531 if self._test_instance.store_tombstones:
532 tombstones_url = None 532 tombstones_url = None
533 for result in results: 533 for result in results:
534 if result.GetType() == base_test_result.ResultType.CRASH: 534 if result.GetType() == base_test_result.ResultType.CRASH:
535 if not tombstones_url: 535 if not tombstones_url:
536 resolved_tombstones = tombstones.ResolveTombstones( 536 resolved_tombstones = tombstones.ResolveTombstones(
537 device, 537 device,
538 resolve_all_tombstones=True, 538 resolve_all_tombstones=True,
539 include_stack_symbols=False, 539 include_stack_symbols=False,
540 wipe_tombstones=True) 540 wipe_tombstones=True,
541 tombstone_symbolizer=self._test_instance.symbolizer)
541 stream_name = 'tombstones_%s_%s' % ( 542 stream_name = 'tombstones_%s_%s' % (
542 time.strftime('%Y%m%dT%H%M%S-UTC', time.gmtime()), 543 time.strftime('%Y%m%dT%H%M%S-UTC', time.gmtime()),
543 device.serial) 544 device.serial)
544 tombstones_url = logdog_helper.text( 545 tombstones_url = logdog_helper.text(
545 stream_name, '\n'.join(resolved_tombstones)) 546 stream_name, '\n'.join(resolved_tombstones))
546 result.SetLink('tombstones', tombstones_url) 547 result.SetLink('tombstones', tombstones_url)
547 548
548 if self._env.concurrent_adb: 549 if self._env.concurrent_adb:
549 post_test_step_thread_group.JoinAll() 550 post_test_step_thread_group.JoinAll()
550 return results, None 551 return results, None
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 timeout *= cls._GetTimeoutScaleFromAnnotations(annotations) 712 timeout *= cls._GetTimeoutScaleFromAnnotations(annotations)
712 713
713 return timeout 714 return timeout
714 715
715 def _IsRenderTest(test): 716 def _IsRenderTest(test):
716 """Determines if a test or list of tests has a RenderTest amongst them.""" 717 """Determines if a test or list of tests has a RenderTest amongst them."""
717 if not isinstance(test, list): 718 if not isinstance(test, list):
718 test = [test] 719 test = [test]
719 return any([RENDER_TEST_FEATURE_ANNOTATION in t['annotations'].get( 720 return any([RENDER_TEST_FEATURE_ANNOTATION in t['annotations'].get(
720 FEATURE_ANNOTATION, {}).get('value', ()) for t in test]) 721 FEATURE_ANNOTATION, {}).get('value', ()) for t in test])
OLDNEW
« no previous file with comments | « build/android/pylib/instrumentation/instrumentation_test_instance.py ('k') | build/android/pylib/symbols/stack_symbolizer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698