| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS 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 grp, logging, os, pwd, re, stat, subprocess | 5 import grp, logging, os, pwd, re, stat, subprocess |
| 6 from signal import SIGSEGV | 6 from signal import SIGSEGV |
| 7 from autotest_lib.client.bin import site_crash_test, test, utils | 7 from autotest_lib.client.bin import utils |
| 8 from autotest_lib.client.common_lib import error | 8 from autotest_lib.client.common_lib import error |
| 9 from autotest_lib.client.cros import crash_test |
| 10 |
| 9 | 11 |
| 10 _COLLECTION_ERROR_SIGNATURE = 'crash_reporter-user-collection' | 12 _COLLECTION_ERROR_SIGNATURE = 'crash_reporter-user-collection' |
| 11 _CORE2MD_PATH = '/usr/bin/core2md' | 13 _CORE2MD_PATH = '/usr/bin/core2md' |
| 12 _LEAVE_CORE_PATH = '/root/.leave_core' | 14 _LEAVE_CORE_PATH = '/root/.leave_core' |
| 13 _MAX_CRASH_DIRECTORY_SIZE = 32 | 15 _MAX_CRASH_DIRECTORY_SIZE = 32 |
| 14 | 16 |
| 15 | 17 |
| 16 class logging_UserCrash(site_crash_test.CrashTest): | 18 class logging_UserCrash(crash_test.CrashTest): |
| 17 version = 1 | 19 version = 1 |
| 18 | 20 |
| 19 | 21 |
| 20 def setup(self): | 22 def setup(self): |
| 21 os.chdir(self.srcdir) | 23 os.chdir(self.srcdir) |
| 22 utils.make('clean') | 24 utils.make('clean') |
| 23 utils.make('all') | 25 utils.make('all') |
| 24 | 26 |
| 25 | 27 |
| 26 def _test_reporter_startup(self): | 28 def _test_reporter_startup(self): |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 'chronos_crasher_no_consent', | 632 'chronos_crasher_no_consent', |
| 631 'root_crasher', | 633 'root_crasher', |
| 632 'root_crasher_no_consent', | 634 'root_crasher_no_consent', |
| 633 'crash_filtering', | 635 'crash_filtering', |
| 634 'max_enqueued_crashes', | 636 'max_enqueued_crashes', |
| 635 'core2md_failure', | 637 'core2md_failure', |
| 636 'internal_directory_failure', | 638 'internal_directory_failure', |
| 637 'core_file_persists_in_debug', | 639 'core_file_persists_in_debug', |
| 638 'core_file_removed_in_production'], | 640 'core_file_removed_in_production'], |
| 639 initialize_crash_reporter = True) | 641 initialize_crash_reporter = True) |
| OLD | NEW |