Home | History | Annotate | Download | only in network_3GDisableWhileConnecting
      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 = "network_3GDisableWhileConnecting.gobi"
      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 TIME = "SHORT"
     13 TEST_CATEGORY = "Functional"
     14 TEST_CLASS = "network"
     15 TEST_TYPE = "client"
     16 
     17 DOC = """
     18 Check that the 3G modem can handle a disconnect while connecting.
     19 """
     20 
     21 from autotest_lib.client.cros.cellular import test_environment
     22 
     23 ITERATIONS_PER_TEST=1
     24 
     25 test_env = test_environment.CellularOTATestEnvironment()
     26 job.run_test('network_3GDisableWhileConnecting',
     27              test_env=test_env,
     28              delay_before_disable_ms=200,
     29              async_connect_sleep_ms=3000,
     30              iterations=ITERATIONS_PER_TEST,
     31              tag='short_delay_disable')
     32 
     33 # Since dbus-python emits our calls asynchronously, it is sometimes
     34 # (often?) the case that the disable arrives before the connect.
     35 # There's no good way to track what actually gets sent first, so we
     36 # sleep.
     37 job.run_test('network_3GDisableWhileConnecting',
     38              test_env=test_env,
     39              delay_before_disable_ms=0,
     40              disable_delay_per_iteration_ms=0,
     41              connect_fails_with_error_sending_qmi_request=1,
     42              iterations=ITERATIONS_PER_TEST,
     43              tag='qmi_failure')
     44