1# Copyright (c) 2009 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 5AUTHOR = "Chrome OS Team" 6NAME = "CryptohomeSyncStressServer" 7TIME = "LONG" 8TEST_CATEGORY = "Stress" 9TEST_CLASS = "platform" 10TEST_TYPE = "server" 11 12DOC = """ 13This test logs in, waits a random interval between 0 and 120s, then 14automatically reboots power to the system using a remotely controlled power 15strip. After the system restarts, it verifies that login completes and 16cryptohome mounts successfully. Best used on an account with many things to 17sync, so the crash happens during various stages of the syncing process. 18This test runs continuously and fails iff it stops running. 19""" 20 21# convert autoserv args to something usable 22opts = dict([[k, v] for (k, e, v) in [x.partition('=') for x in args]]) 23 24power_addr = opts.get('power_addr', None) 25outlet = opts.get('outlet', None) 26username = opts.get('user', None) 27password = opts.get('pass', None) 28iterations = opts.get('iter', '1000000') 29 30iterations = int(iterations) 31 32host = hosts.create_host(machines[0]) 33job.run_test('platform_CryptohomeSyncStressServer', host=host, 34 power_addr=power_addr, outlet=outlet, 35 username=username, password=password, iterations=iterations) 36