• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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 = "network_3GModemControl.novatel-e362"
7PURPOSE = "Verify commands sent to a modem manager are reflected in flimflam."
8CRITERIA = """
9This test will fail if modem manager state differs from flimflam state.
10"""
11ATTRIBUTES = "suite:network3g"
12TIME = "SHORT"
13TEST_CATEGORY = "Functional"
14TEST_CLASS = "network"
15TEST_TYPE = "client"
16DEPENDENCIES = "modem:novatel-e362, modem_repair"
17
18# The E362 modems may fail while connecting and disconnecting.  These
19# failures go away if the test is retried.  See crbug.com/224026,
20# crbug.com/224110, and crbug.com/224329.
21# TODO(thieule): Change this from generic retry to specific failure retry.
22# crbug.com/224369.
23RETRIES = 2
24
25DOC = """
26  Tests that commands sent to ModemManager or cromo are reflected in flimflam.
27
28  Issues many connect, disconnect, enable, and disable commands to ensure
29  that the modem state is always properly reflected in flimflam -- even
30  if the commands are sent to the modem manager instead of flimflam.
31"""
32
33from autotest_lib.client.cros.cellular import test_environment
34
35# For E362 modems, we need to prevent the modem from disconnecting too quickly
36# or else the out-of-credits logic will kick in and attempt to reconnect (see
37# shill/cellular_service.cc).  This is accomplished by setting |slow_connect|
38# to True.
39test_env = test_environment.CellularOTATestEnvironment()
40job.run_test('network_3GModemControl', test_env=test_env, autoconnect=False,
41             slow_connect=True, tag='no-autoconnect-novatel-e362')
42job.run_test('network_3GModemControl', test_env=test_env, autoconnect=True,
43             slow_connect=True, tag='autoconnect-novatel-e362')
44