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

Side by Side Diff: ppapi/native_client/tests/breakpad_crash_test/crash_dump_tester.py

Issue 10914053: Relocating files in the nacl repo that belong in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 os 6 import os
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 import tempfile 9 import tempfile
10 import time 10 import time
11 11
12 script_dir = os.path.dirname(__file__) 12 script_dir = os.path.dirname(__file__)
13 sys.path.append(os.path.join(script_dir, 13 sys.path.append(os.path.join(script_dir,
14 '../../../../native_client/tools/browser_tester')) 14 '../../tools/browser_tester'))
15 15
16 import browser_tester 16 import browser_tester
17 import browsertester.browserlauncher 17 import browsertester.browserlauncher
18 18
19 # This script extends browser_tester to check for the presence of 19 # This script extends browser_tester to check for the presence of
20 # Breakpad crash dumps. 20 # Breakpad crash dumps.
21 21
22 22
23 # This reads a file of lines containing 'key:value' pairs. 23 # This reads a file of lines containing 'key:value' pairs.
24 # The file contains entries like the following: 24 # The file contains entries like the following:
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 result = 1 157 result = 1
158 else: 158 else:
159 sys.stdout.write('crash_dump_tester: PASSED\n') 159 sys.stdout.write('crash_dump_tester: PASSED\n')
160 160
161 browsertester.browserlauncher.RemoveDirectory(dumps_dir) 161 browsertester.browserlauncher.RemoveDirectory(dumps_dir)
162 return result 162 return result
163 163
164 164
165 if __name__ == '__main__': 165 if __name__ == '__main__':
166 sys.exit(Main()) 166 sys.exit(Main())
OLDNEW
« no previous file with comments | « ppapi/native_client/src/untrusted/pnacl_support_extension/nacl.scons ('k') | ppapi/native_client/tests/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698