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

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

Issue 3465002: Add Sentry power strip control and cryptohome/sync stress test (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Mistake: iterations is already an autotest parameter for run_tests() 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import dbus, string
6 from autotest_lib.client.bin import site_login, test
7 from autotest_lib.client.common_lib import error
8
9 class platform_CryptohomeSyncStress(test.test):
10 version = 1
11
12 def run_once(self, username, password):
13 # log in. don't use UITest because it uses its own auth and
14 # DNS servers, and we need to do real login and chrome sync
15 site_login.attempt_login(username, password)
16
17 # make sure cryptohome is mounted
18 bus = dbus.SystemBus()
19 proxy = bus.get_object('org.chromium.Cryptohome',
20 '/org/chromium/Cryptohome')
21 cryptohome = dbus.Interface(proxy, 'org.chromium.CryptohomeInterface')
22
23 ismounted = cryptohome.IsMounted()
24 if not ismounted:
25 raise error.TestFail('Cryptohome failed to mount.')
26
27 self.job.set_state('client_fail', False)
OLDNEW
« no previous file with comments | « client/site_tests/platform_CryptohomeSyncStress/control ('k') | server/site_tests/platform_CryptohomeSyncStressServer/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698