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 logging, os | 5 import logging, os |
6 from autotest_lib.client.bin import site_crash_test, site_utils, test | 6 from autotest_lib.client.bin import site_crash_test, site_utils, test |
7 from autotest_lib.client.common_lib import error, utils | 7 from autotest_lib.client.common_lib import error, utils |
8 | 8 |
9 _CRASH_SENDER_CRON_PATH = '/etc/cron.hourly/crash_sender.hourly' | 9 _CRASH_SENDER_CRON_PATH = '/etc/cron.hourly/crash_sender.hourly' |
10 _DAILY_RATE_LIMIT = 8 | 10 _DAILY_RATE_LIMIT = 32 |
11 _MIN_UNIQUE_TIMES = 4 | 11 _MIN_UNIQUE_TIMES = 4 |
12 _SECONDS_SEND_SPREAD = 3600 | 12 _SECONDS_SEND_SPREAD = 3600 |
13 | 13 |
14 | 14 |
15 class logging_CrashSender(site_crash_test.CrashTest): | 15 class logging_CrashSender(site_crash_test.CrashTest): |
16 version = 1 | 16 version = 1 |
17 | 17 |
18 | 18 |
19 def _test_sender_simple_minidump(self): | 19 def _test_sender_simple_minidump(self): |
20 """Test sending a single minidump crash report.""" | 20 """Test sending a single minidump crash report.""" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 'sender_simple_minidump', | 199 'sender_simple_minidump', |
200 'sender_simple_kernel_crash', | 200 'sender_simple_kernel_crash', |
201 'sender_pausing', | 201 'sender_pausing', |
202 'sender_reports_disabled', | 202 'sender_reports_disabled', |
203 'sender_rate_limiting', | 203 'sender_rate_limiting', |
204 'sender_single_instance', | 204 'sender_single_instance', |
205 'sender_send_fails', | 205 'sender_send_fails', |
206 'sender_leaves_core_files', | 206 'sender_leaves_core_files', |
207 'sender_unknown_report_kind', | 207 'sender_unknown_report_kind', |
208 'cron_runs']) | 208 'cron_runs']) |
OLD | NEW |