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) |