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

Side by Side Diff: content/shell/tools/breakpad_integration_test.py

Issue 511223002: Update some paths from components/breakpad/ to components/crash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « PRESUBMIT_test.py ('k') | 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 # 2 #
3 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Integration test for breakpad in content shell. 7 """Integration test for breakpad in content shell.
8 8
9 This test checks that content shell and breakpad are correctly hooked up, as 9 This test checks that content shell and breakpad are correctly hooked up, as
10 well as that the tools can symbolize a stack trace.""" 10 well as that the tools can symbolize a stack trace."""
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 failure = '' 52 failure = ''
53 53
54 # Create a temporary directory to store the crash dumps and symbols in. 54 # Create a temporary directory to store the crash dumps and symbols in.
55 crash_dir = tempfile.mkdtemp() 55 crash_dir = tempfile.mkdtemp()
56 56
57 try: 57 try:
58 print "# Generate symbols." 58 print "# Generate symbols."
59 breakpad_tools_dir = os.path.join( 59 breakpad_tools_dir = os.path.join(
60 os.path.dirname(__file__), '..', '..', '..', 60 os.path.dirname(__file__), '..', '..', '..',
61 'components', 'breakpad', 'tools') 61 'components', 'crash', 'tools')
62 generate_symbols = os.path.join( 62 generate_symbols = os.path.join(
63 breakpad_tools_dir, 'generate_breakpad_symbols.py') 63 breakpad_tools_dir, 'generate_breakpad_symbols.py')
64 symbols_dir = os.path.join(crash_dir, 'symbols') 64 symbols_dir = os.path.join(crash_dir, 'symbols')
65 cmd = [generate_symbols, 65 cmd = [generate_symbols,
66 '--build-dir=%s' % options.build_dir, 66 '--build-dir=%s' % options.build_dir,
67 '--binary=%s' % options.binary, 67 '--binary=%s' % options.binary,
68 '--symbols-dir=%s' % symbols_dir, 68 '--symbols-dir=%s' % symbols_dir,
69 '--jobs=%d' % options.jobs] 69 '--jobs=%d' % options.jobs]
70 if options.verbose: 70 if options.verbose:
71 cmd.append('--verbose') 71 cmd.append('--verbose')
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 finally: 139 finally:
140 try: 140 try:
141 shutil.rmtree(crash_dir) 141 shutil.rmtree(crash_dir)
142 except: 142 except:
143 print 'Failed to delete temp directory "%s".' % crash_dir 143 print 'Failed to delete temp directory "%s".' % crash_dir
144 144
145 145
146 if '__main__' == __name__: 146 if '__main__' == __name__:
147 sys.exit(main()) 147 sys.exit(main())
OLDNEW
« no previous file with comments | « PRESUBMIT_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698