blob: 31e19596afc1f1596a7191e8b0271d3a1a6407bd [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
AUTHOR = "ChromeOS Team"
NAME = "network_3GDisableWhileConnecting"
PURPOSE = "Check that the 3G modem can handle a disconnect while connecting."
CRITERIA = """
This test will fail if a disconnect request while the modem is
connecting is not promptly executed.
"""
SUITE = "network3g"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "network"
TEST_TYPE = "client"
DEPENDENCIES = "modem:gobi2k, carrier:tmobile"
DOC = """
Check that the 3G modem can handle a disconnect while connecting.
"""
ITERATIONS_PER_TEST=1
job.run_test('network_3GDisableWhileConnecting',
timeout_s=20,
delay_before_disable_ms=200,
async_connect_sleep_ms=3000,
iterations=ITERATIONS_PER_TEST,
tag='short_delay_disable-gobi2k_tmobile')
# Since dbus-python emits our calls asynchronously, it is sometimes
# (often?) the case that the disable arrives before the connect.
# There's no good way to track what actually gets sent first, so we
# sleep.
job.run_test('network_3GDisableWhileConnecting',
timeout_s=20,
delay_before_disable_ms=0,
disable_delay_per_iteration_ms=0,
connect_fails_with_error_sending_qmi_request=1,
iterations=ITERATIONS_PER_TEST,
tag='qmi_failure-gobi2k_tmobile')