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

Side by Side Diff: build/android/buildbot/bb_device_steps.py

Issue 1681143002: Reland of Add --output-directory to stack tool buildbot step (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 import collections 6 import collections
7 import glob 7 import glob
8 import hashlib 8 import hashlib
9 import json 9 import json
10 import os 10 import os
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 'gs://%s' % gs_path]) 623 'gs://%s' % gs_path])
624 bb_annotations.PrintLink('logcat dump', '%s/%s' % (GS_AUTH_URL, gs_path)) 624 bb_annotations.PrintLink('logcat dump', '%s/%s' % (GS_AUTH_URL, gs_path))
625 625
626 626
627 def RunStackToolSteps(options): 627 def RunStackToolSteps(options):
628 """Run stack tool steps. 628 """Run stack tool steps.
629 629
630 Stack tool is run for logcat dump, optionally for ASAN. 630 Stack tool is run for logcat dump, optionally for ASAN.
631 """ 631 """
632 bb_annotations.PrintNamedStep('Run stack tool with logcat dump') 632 bb_annotations.PrintNamedStep('Run stack tool with logcat dump')
633 logcat_file = os.path.join(CHROME_OUT_DIR, options.target, 'full_log.txt') 633 build_dir = os.path.join(CHROME_OUT_DIR, options.target)
634 logcat_file = os.path.join(build_dir, 'full_log.txt')
634 RunCmd([os.path.join(CHROME_SRC_DIR, 'third_party', 'android_platform', 635 RunCmd([os.path.join(CHROME_SRC_DIR, 'third_party', 'android_platform',
635 'development', 'scripts', 'stack'), 636 'development', 'scripts', 'stack'),
637 '--output-directory', build_dir,
636 '--more-info', logcat_file]) 638 '--more-info', logcat_file])
637 if options.asan_symbolize: 639 if options.asan_symbolize:
638 bb_annotations.PrintNamedStep('Run stack tool for ASAN') 640 bb_annotations.PrintNamedStep('Run stack tool for ASAN')
639 RunCmd([ 641 RunCmd([
640 os.path.join(CHROME_SRC_DIR, 'build', 'android', 'asan_symbolize.py'), 642 os.path.join(CHROME_SRC_DIR, 'build', 'android', 'asan_symbolize.py'),
643 '--output-directory', build_dir,
641 '-l', logcat_file]) 644 '-l', logcat_file])
642 645
643 646
644 def GenerateTestReport(options): 647 def GenerateTestReport(options):
645 bb_annotations.PrintNamedStep('test_report') 648 bb_annotations.PrintNamedStep('test_report')
646 for report in glob.glob( 649 for report in glob.glob(
647 os.path.join(CHROME_OUT_DIR, options.target, 'test_logs', '*.log')): 650 os.path.join(CHROME_OUT_DIR, options.target, 'test_logs', '*.log')):
648 RunCmd(['cat', report]) 651 RunCmd(['cat', report])
649 os.remove(report) 652 os.remove(report)
650 653
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 766
764 if options.coverage_bucket: 767 if options.coverage_bucket:
765 setattr(options, 'coverage_dir', 768 setattr(options, 'coverage_dir',
766 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) 769 os.path.join(CHROME_OUT_DIR, options.target, 'coverage'))
767 770
768 MainTestWrapper(options) 771 MainTestWrapper(options)
769 772
770 773
771 if __name__ == '__main__': 774 if __name__ == '__main__':
772 sys.exit(main(sys.argv)) 775 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698