| OLD | NEW |
| 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 Loading... |
| 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()) |
| OLD | NEW |