xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.wificell-suspend-unstable (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1*9c5db199SXin Li# Copyright 2019 The Chromium OS Authors. All rights reserved.
2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be
3*9c5db199SXin Li# found in the LICENSE file.
4*9c5db199SXin Li
5*9c5db199SXin Lifrom autotest_lib.client.common_lib import utils
6*9c5db199SXin Li
7*9c5db199SXin LiAUTHOR = 'Chromium OS team'
8*9c5db199SXin LiNAME = 'tast.wificell-suspend-unstable'
9*9c5db199SXin LiTIME = 'MEDIUM'
10*9c5db199SXin LiTEST_TYPE = 'Server'
11*9c5db199SXin LiDEPENDENCIES = 'servo_state:WORKING'
12*9c5db199SXin LiATTRIBUTES = 'suite:wifi_func_tast'
13*9c5db199SXin LiMAX_RESULT_SIZE_KB = 1024 * 1024
14*9c5db199SXin LiPY_VERSION = 3
15*9c5db199SXin Li
16*9c5db199SXin LiDOC = '''
17*9c5db199SXin LiRun the unstable Tast tests which verify basic WiFi behavior related to
18*9c5db199SXin Lisuspend/resume using wificell fixture.
19*9c5db199SXin Li
20*9c5db199SXin LiNote that wificell-suspend-stable does not have servo dependency as
21*9c5db199SXin Liwificell-suspend-stable belongs to suite:wifi_matfunc, and currently it does
22*9c5db199SXin Linot configure servo yet.
23*9c5db199SXin Li
24*9c5db199SXin LiThe suspend tests that need servo shall stay in this unstable group until
25*9c5db199SXin Lisuite:wifi_matfunc supports servo.
26*9c5db199SXin Li
27*9c5db199SXin LiTast is an integration-testing framework analagous to the test-running portion
28*9c5db199SXin Liof Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
29*9c5db199SXin Limore information.
30*9c5db199SXin Li
31*9c5db199SXin LiSee http://go/tast-failures for information about investigating failures.
32*9c5db199SXin Li'''
33*9c5db199SXin Li
34*9c5db199SXin Liargs_dict = utils.args_to_dict(args)
35*9c5db199SXin Liassert 'servo_state:WORKING' in DEPENDENCIES
36*9c5db199SXin Liservo_args = hosts.CrosHost.get_servo_arguments(args_dict)
37*9c5db199SXin Li
38*9c5db199SXin Lidef run(machine):
39*9c5db199SXin Li    job.run_test('tast',
40*9c5db199SXin Li                 host=hosts.create_host(machine, servo_args=servo_args),
41*9c5db199SXin Li                 test_exprs=['("group:wificell" && wificell_suspend && '
42*9c5db199SXin Li                             'wificell_unstable)'],
43*9c5db199SXin Li                 ignore_test_failures=True, max_run_sec=10800,
44*9c5db199SXin Li                 command_args=args)
45*9c5db199SXin Li
46*9c5db199SXin Liparallel_simple(run, machines)
47