1# Copyright (c) 2011 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_ZeroSignal" 7PURPOSE = "Verify cell modem properly deals with signal changes." 8CRITERIA = """Modem can loses registeration after signal is lost.""" 9ATTRIBUTES = "suite:cell_emulator" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "network" 13TEST_TYPE = "client" 14 15DOC = """ 16 Tests that a modem loses registration when the signal stregth goes 17 to zero and that it reregisters on a new technology when the a 18 technology has a signal. 19""" 20 21from autotest_lib.client.cros.cellular import cellular 22from autotest_lib.client.cros.cellular import labconfig 23 24 25config = labconfig.Configuration(args) 26technologies = config.get_technologies() 27gsm_technologies = [tech for tech in technologies 28 if cellular.TechnologyToFamily[tech] == cellular.TechnologyFamily.UMTS] 29 30job.run_test('cellular_Signal', 31 config=config, 32 technologies=gsm_technologies, 33 wait_for_disc=True, 34 verify_set_power=True, 35 tag='GSM.SetPower.Wait') 36 37job.run_test('cellular_Signal', 38 config=config, 39 technologies=gsm_technologies, 40 wait_for_disc=False, 41 verify_set_power=True, 42 tag='GSM.SetPower.NoWait') 43 44# TODO(jglasgow): run tests for CDMA technologies 45