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