| # Copyright (c) 2013 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. |
| |
| |
| AUTHOR = "milleral, chromeos-lab-infrastructure" |
| NAME = "provision_AutoUpdate" |
| PURPOSE = "Provision a system to the correct OS version." |
| TIME = "MEDIUM" |
| TEST_CATEGORY = "System" |
| TEST_CLASS = "provision" |
| TEST_TYPE = "Server" |
| |
| DOC = """ |
| This is a test used by the provision control segment in autoserv to set the |
| cros-version label of a host to the desired setting. |
| """ |
| |
| |
| from autotest_lib.client.common_lib import error, utils |
| |
| |
| # Uncomment the below line, and change it to the correct value if you are |
| # running this from the AFE. |
| # value = 'lumpy-release/R28-3993.0.0' |
| |
| |
| if not locals().get('value'): |
| args = utils.args_to_dict(args) |
| if not args.get('value'): |
| raise error.TestError("No provision value!") |
| value = args['value'] |
| |
| |
| def run(machine): |
| host = hosts.create_host(machine, initialize=False) |
| job.run_test('provision_AutoUpdate', host=host, value=value, |
| disable_sysinfo=True) |
| |
| |
| job.parallel_simple(run, machines) |