xref: /aosp_15_r20/external/autotest/client/site_tests/cellular_DisableWhileConnecting/control.sprint (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2017 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
5AUTHOR = "ChromeOS Team"
6NAME = "cellular_DisableWhileConnecting.sprint"
7PURPOSE = "Check that the 3G modem can handle a disconnect while connecting."
8CRITERIA = """
9This test will fail if a disconnect request while the modem is
10connecting is not promptly executed.
11"""
12ATTRIBUTES = "suite:cellular_ota_flaky"
13TIME = "SHORT"
14TEST_CATEGORY = "Functional"
15TEST_CLASS = "network"
16TEST_TYPE = "client"
17DEPENDENCIES = "carrier:sprint"
18PY_VERSION = 3
19
20DOC = """
21Check that the 3G modem can handle a disconnect while connecting.
22"""
23
24from autotest_lib.client.cros.cellular import test_environment
25
26ITERATIONS_PER_TEST=1
27
28test_env = test_environment.CellularOTATestEnvironment()
29# Disabling this test. More details @ b/174480387
30"""
31job.run_test('cellular_DisableWhileConnecting',
32             test_env=test_env, delay_before_disable_ms=0,
33             disable_delay_per_iteration_ms=0,
34             iterations=ITERATIONS_PER_TEST, tag='instant_disable') """
35
36# Since dbus-python emits our calls asynchronously, it is sometimes
37# (often?) the case that the disable arrives before the connect.
38# There's no good way to track what actually gets sent first, so we
39# sleep.
40job.run_test('cellular_DisableWhileConnecting',
41             test_env=test_env,
42             delay_before_disable_ms=0,
43             disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST),
44             iterations=ITERATIONS_PER_TEST, tag='disable_delay_ramp')
45