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

Side by Side Diff: client/site_tests/platform_ProcessPrivileges/platform_ProcessPrivileges.py

Issue 3391023: autotest: Bring platform_ProcessPrivileges test up to date (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 time 5 import time
6 from autotest_lib.client.bin import site_login, site_ui_test, utils 6 from autotest_lib.client.bin import site_login, site_ui_test, utils
7 from autotest_lib.client.common_lib import error 7 from autotest_lib.client.common_lib import error
8 8
9 class platform_ProcessPrivileges(site_ui_test.UITest): 9 class platform_ProcessPrivileges(site_ui_test.UITest):
10 version = 1 10 version = 1
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 # 'Process %s running with super-user flag' % 63 # 'Process %s running with super-user flag' %
64 # process) 64 # process)
65 if 'root' in ps: 65 if 'root' in ps:
66 self.log_error(process, pscmd, 66 self.log_error(process, pscmd,
67 'Process %s running as root' % process) 67 'Process %s running as root' % process)
68 return 68 return
69 69
70 70
71 def run_once(self): 71 def run_once(self):
72 self._failed = [] 72 self._failed = []
73 self.check_process('candidate_window', user='chronos', do_login=True) 73 self.check_process('cashewd', user='cashew')
74 self.check_process('chrome') 74 self.check_process('chrome')
75 75 self.check_process('cryptohomed', user='root')
76 # TODO(mazda): Change the user value to 'messagebus'. 76 # TODO(mazda): Change the user value to 'messagebus'.
77 # 201 is a uid of messagebus. ps command displays 201 as the 77 # 201 is a uid of messagebus. ps command displays 201 as the
78 # user name for some reasons (bug of the ps command?). 78 # user name for some reasons (bug of the ps command?).
79 self.check_process('dbus-daemon', user='201') 79 self.check_process('dbus-daemon', user='201')
80 80 self.check_process('flimflamd', user='root')
81 self.check_process('ibus-daemon', user='chronos', do_login=True) 81 self.check_process('metrics_daemon', user='root')
82 self.check_process('ibus-memconf', user='chronos', do_login=True) 82 self.check_process('powerd')
83 self.check_process('rsyslogd', user='root')
84 self.check_process('udevd', user='root')
85 self.check_process('wpa_supplicant', user='root')
83 self.check_process('X', user='root') 86 self.check_process('X', user='root')
84 87
85 if len(self._failed) != 0: 88 if len(self._failed) != 0:
86 raise error.TestFail( 89 raise error.TestFail(
87 'Failed processes: %s' % ','.join(self._failed)) 90 'Failed processes: %s' % ','.join(self._failed))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698