Home | History | Annotate | Download | only in cellular_DisableWhileConnecting
      1 # Copyright (c) 2012 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 
      5 AUTHOR = "ChromeOS Team"
      6 NAME = "cellular_DisableWhileConnecting.gobi3k"
      7 PURPOSE = "Check that the 3G modem can handle a disconnect while connecting."
      8 CRITERIA = """
      9 This test will fail if a disconnect request while the modem is
     10 connecting is not promptly executed.
     11 """
     12 ATTRIBUTES = "suite:cellular_ota_tmobile, suite:cellular_ota_verizon"
     13 TIME = "SHORT"
     14 TEST_CATEGORY = "Functional"
     15 TEST_CLASS = "network"
     16 TEST_TYPE = "client"
     17 DEPENDENCIES = "modem:gobi3k"
     18 
     19 DOC = """
     20 Check that the 3G modem can handle a disconnect while connecting.
     21 """
     22 
     23 from autotest_lib.client.cros.cellular import test_environment
     24 
     25 ITERATIONS_PER_TEST=1
     26 
     27 test_env = test_environment.CellularOTATestEnvironment()
     28 job.run_test('cellular_DisableWhileConnecting',
     29              test_env=test_env,
     30              delay_before_disable_ms=200,
     31              async_connect_sleep_ms=3000,
     32              iterations=ITERATIONS_PER_TEST,
     33              tag='short_delay_disable-gobi3k')
     34 
     35 # Since dbus-python emits our calls asynchronously, it is sometimes
     36 # (often?) the case that the disable arrives before the connect.
     37 # There's no good way to track what actually gets sent first, so we
     38 # sleep.
     39 job.run_test('cellular_DisableWhileConnecting',
     40              test_env=test_env,
     41              delay_before_disable_ms=0,
     42              disable_delay_per_iteration_ms=0,
     43              connect_fails_with_error_sending_qmi_request=1,
     44              iterations=ITERATIONS_PER_TEST,
     45              tag='qmi_failure-gobi3k')
     46