• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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
5from autotest_lib.server import utils
6
7AUTHOR = "Chrome OS Team"
8NAME = "servo_LabstationVerification.local"
9PURPOSE = "Ensure labstation images can provide basic lab functionality."
10TIME = "MEDIUM"
11TEST_CATEGORY = "Benchmark"
12TEST_CLASS = "platform"
13TEST_TYPE = "server"
14
15DOC = """
16The local version of servo_LabstationVerification. Local in this context means
17that for the tests that require an image to be placed on the usb stick to run
18the test will assume an image is already present, and not attempt to download
19and image itself.
20
21For more details, please see the DOC section in the file 'control'.
22
23Sample usage:
24  test_that <labstation ip> servo_LabstationVerification.local
25
26  test_that <labstation ip> servo_LabstationVerification.local
27    --args="dut_ip=${DUT_IP}"
28  // To skip DUT ip inferring and use a known DUT ip
29"""
30# Workaround to make it compatible with moblab autotest UI.
31global args_dict
32try:
33    args_dict
34except NameError:
35    args_dict = utils.args_to_dict(args)
36
37def run(machine):
38    host = hosts.create_host(machine)
39    job.run_test("servo_LabstationVerification", host=host, local=True,
40                 config=args_dict, disable_sysinfo=True)
41
42parallel_simple(run, machines)
43