blob: c5ca040fee2a2d2092e463d1dca2cfdf69959b27 [file] [log] [blame]
# 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.
AUTHOR = "Chrome OS Team"
NAME = "HWQualAuto"
TIME = "LONG"
TEST_CATEGORY = "Functional"
TEST_CLASS = "suite"
TEST_TYPE = "server"
DOC = """
This is a server side wrapper for the client suite suite_HWQual/control.auto. It
loads the client control file and overrides the job variable to be a client
autotest instance.
"""
# HWQualAuto client control file.
CLIENT_CONTROL = 'client/site_tests/suite_HWQual/control.auto'
def run_client_test(machine):
client = hosts.create_host(machine)
client_at = autotest.Autotest(client)
# Copy global state and replace job token with client Autotest instance.
temp_globals = dict(globals())
temp_globals['job'] = client_at
execfile(os.path.join(job.autodir, CLIENT_CONTROL), temp_globals)
job.parallel_on_machines(run_client_test, machines)