1# Copyright 2021 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.client.common_lib import utils 6 7AUTHOR = 'Chromium OS team' 8NAME = 'tast.wilco_bve' 9TIME = 'LONG' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'servo_state:WORKING' 12ATTRIBUTES = 'suite:wilco_bve' 13MAX_RESULT_SIZE_KB = 50 * 1024 14PY_VERSION = 3 15 16# tast.py uses binaries installed from autotest_server_package.tar.bz2. 17REQUIRE_SSP = True 18 19DOC = ''' 20Run Wilco tests that require servo type-A connected to a USB-A port that 21has a lightning bolt or a battery icon engraved into it. 22 23Tast is an integration-testing framework analagous to the test-running portion 24of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for 25more information. 26''' 27 28args_dict = utils.args_to_dict(args) 29assert 'servo_state:WORKING' in DEPENDENCIES 30servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 31 32def run(machine): 33 job.run_test('tast', 34 host=hosts.create_host(machine, servo_args=servo_args), 35 max_run_sec=10800, 36 test_exprs=['("group:wilco_bve")'], 37 command_args=args) 38 39parallel_simple(run, machines) 40