xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.wificell-suspend-unstable (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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.client.common_lib import utils
6
7AUTHOR = 'Chromium OS team'
8NAME = 'tast.wificell-suspend-unstable'
9TIME = 'MEDIUM'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12ATTRIBUTES = 'suite:wifi_func_tast'
13MAX_RESULT_SIZE_KB = 1024 * 1024
14PY_VERSION = 3
15
16DOC = '''
17Run the unstable Tast tests which verify basic WiFi behavior related to
18suspend/resume using wificell fixture.
19
20Note that wificell-suspend-stable does not have servo dependency as
21wificell-suspend-stable belongs to suite:wifi_matfunc, and currently it does
22not configure servo yet.
23
24The suspend tests that need servo shall stay in this unstable group until
25suite:wifi_matfunc supports servo.
26
27Tast is an integration-testing framework analagous to the test-running portion
28of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
29more information.
30
31See http://go/tast-failures for information about investigating failures.
32'''
33
34args_dict = utils.args_to_dict(args)
35assert 'servo_state:WORKING' in DEPENDENCIES
36servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
37
38def run(machine):
39    job.run_test('tast',
40                 host=hosts.create_host(machine, servo_args=servo_args),
41                 test_exprs=['("group:wificell" && wificell_suspend && '
42                             'wificell_unstable)'],
43                 ignore_test_failures=True, max_run_sec=10800,
44                 command_args=args)
45
46parallel_simple(run, machines)
47