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, os.path, signal, time | 5 import logging, os, os.path, signal, time |
6 from autotest_lib.client.bin import chromeos_constants, site_crash_test | 6 from autotest_lib.client.bin import site_crash_test |
7 from autotest_lib.client.bin import site_log_reader, site_login, site_utils | 7 from autotest_lib.client.bin import site_log_reader, site_login, site_utils |
8 from autotest_lib.client.common_lib import utils, error | 8 from autotest_lib.client.common_lib import utils, error |
| 9 from autotest_lib.client.cros import constants as chromeos_constants |
9 | 10 |
10 class logging_CrashServices(site_crash_test.CrashTest): | 11 class logging_CrashServices(site_crash_test.CrashTest): |
11 version = 1 | 12 version = 1 |
12 | 13 |
13 process_list = ["/usr/sbin/acpid", | 14 process_list = ["/usr/sbin/acpid", |
14 "/sbin/agetty", | 15 "/sbin/agetty", |
15 "/usr/sbin/cashewd", | 16 "/usr/sbin/cashewd", |
16 "/opt/google/chrome/chrome", | 17 "/opt/google/chrome/chrome", |
17 "/usr/bin/chromeos-wm", | 18 "/usr/bin/chromeos-wm", |
18 "/usr/sbin/console-kit-daemon", | 19 "/usr/sbin/console-kit-daemon", |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 for process_path in self.process_list: | 111 for process_path in self.process_list: |
111 self.job.run_test("logging_CrashServices", | 112 self.job.run_test("logging_CrashServices", |
112 process_path=process_path, | 113 process_path=process_path, |
113 tag=os.path.basename(process_path)) | 114 tag=os.path.basename(process_path)) |
114 | 115 |
115 # killing session manager logs out, so this will probably fail | 116 # killing session manager logs out, so this will probably fail |
116 try: | 117 try: |
117 site_login.attempt_logout() | 118 site_login.attempt_logout() |
118 except site_login.UnexpectedCondition: | 119 except site_login.UnexpectedCondition: |
119 pass | 120 pass |
OLD | NEW |