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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: client/site_tests/platform_CryptohomeSyncStress/platform_CryptohomeSyncStress.py
diff --git a/client/site_tests/platform_CryptohomeSyncStress/platform_CryptohomeSyncStress.py b/client/site_tests/platform_CryptohomeSyncStress/platform_CryptohomeSyncStress.py
new file mode 100644
index 0000000000000000000000000000000000000000..8be5ec1e7c070e43d73478f61ae1bc05456b761d
--- /dev/null
+++ b/client/site_tests/platform_CryptohomeSyncStress/platform_CryptohomeSyncStress.py
@@ -0,0 +1,27 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import dbus, string
+from autotest_lib.client.bin import site_login, test
+from autotest_lib.client.common_lib import error
+
+class platform_CryptohomeSyncStress(test.test):
+ version = 1
+
+ def run_once(self, username, password):
+ # log in. don't use UITest because it uses its own auth and
+ # DNS servers, and we need to do real login and chrome sync
+ site_login.attempt_login(username, password)
+
+ # make sure cryptohome is mounted
+ bus = dbus.SystemBus()
+ proxy = bus.get_object('org.chromium.Cryptohome',
+ '/org/chromium/Cryptohome')
+ cryptohome = dbus.Interface(proxy, 'org.chromium.CryptohomeInterface')
+
+ ismounted = cryptohome.IsMounted()
+ if not ismounted:
+ raise error.TestFail('Cryptohome failed to mount.')
+
+ self.job.set_state('client_fail', False)
« 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