1# Copyright 2020 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.critical-parallels-shard-0' 9TIME = 'MEDIUM' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'servo_state:WORKING' 12ATTRIBUTES = 'suite:bvt-tast-parallels-cq' 13MAX_RESULT_SIZE_KB = 256 * 1024 14PY_VERSION = 3 15 16# tast.py uses binaries installed from autotest_server_package.tar.bz2. 17REQUIRE_SSP = True 18 19DOC = ''' 20Run the Tast must-pass test suite for booted Parallels. 21 22This test may only be run on hardware licensed for specific versions of 23Windows and Office. Contact [email protected] for details. 24 25Tast is an integration-testing framework analagous to the test-running portion 26of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for 27more information. 28 29This test runs Tast-based tests using a booted Parallels VM that are required 30to pass against a remote DUT. It fails if any individual Tast tests fail. 31 32See http://go/tast-failures for information about investigating failures. 33''' 34 35args_dict = utils.args_to_dict(args) 36assert 'servo_state:WORKING' in DEPENDENCIES 37servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 38 39def run(machine): 40 job.run_test('tast', 41 host=hosts.create_host(machine, servo_args=servo_args), 42 test_exprs=['(' 43 '"group:parallels_mainline" && ' 44 '!informational' 45 ')'], 46 ignore_test_failures=False, max_run_sec=3600, 47 totalshards=3, 48 shardindex=0, 49 command_args=args, 50 clear_tpm=True, 51 varslist=['pita.windowsLicensed=true'], 52 retries=2) 53 54parallel_simple(run, machines) 55