1# Copyright 2018 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 = "dhaddock, Chromium OS" 6NAME = "autoupdate_Interruptions.suspend.full" 7PURPOSE = "Tests using the chromebook during an update." 8TIME = "MEDIUM" 9TEST_CATEGORY = "Functional" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:au-perbuild" 13DOC = """ 14Tests suspending/resuming the chromebook during an update. 15 16test_that <hostname>.cros autoupdate_Interruptions.suspend.full --args="job_repo_url='http://<IP>:<port>/static/<board>-release/RXX-XXXX.X.X/autotest/packages'" 17""" 18 19from autotest_lib.client.common_lib import utils 20 21args_dict = utils.args_to_dict(args) 22 23def run(machine): 24 host = hosts.create_host(machine) 25 job.run_test('autoupdate_Interruptions', host=host, full_payload=True, 26 interrupt='suspend', **args_dict) 27 28job.parallel_simple(run, machines) 29