xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.autoupdate (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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 = 'cros-engprod-muc'
8NAME = 'tast.autoupdate'
9TIME = 'LONG'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12ATTRIBUTES = 'suite:au-perbuild-tast'
13MAX_RESULT_SIZE_KB = 256 * 1024
14PY_VERSION = 3
15
16DOC = '''
17This suite runs the autoupdate tests in Tast.
18
19Servo is needed in case of a device restoration, when every other image
20restoration attempts failed.
21'''
22
23args_dict = utils.args_to_dict(args)
24assert 'servo_state:WORKING' in DEPENDENCIES
25servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
26
27def run(machine):
28    job.run_test('tast',
29                 host=hosts.create_host(machine, servo_args=servo_args),
30                 test_exprs=['("group:autoupdate")'],
31                 ignore_test_failures=True, max_run_sec=10800,
32                 command_args=args,
33                 retries=2)
34
35parallel_simple(run, machines)
36