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_Signal" 7PURPOSE = "Verify cell modem properly deals with technology changes." 8CRITERIA = """Modem reregisters after technology changes.""" 9ATTRIBUTES = "suite:cell_emulator" 10SUITE = "cell_emulator" 11TIME = "SHORT" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "network" 14TEST_TYPE = "client" 15 16DOC = """ 17 Test that a modem can reregister after the network technology abruptly 18 changes. 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 30# One can only roam with a given technology family 31job.run_test('cellular_Signal', 32 config=config, 33 technologies=gsm_technologies, 34 wait_for_disc=True, 35 verify_set_power=False, 36 tag='GSM.Wait') 37 38job.run_test('cellular_Signal', 39 config=config, 40 technologies=gsm_technologies, 41 wait_for_disc=False, 42 verify_set_power=False, 43 tag='GSM.NoWait') 44 45# TODO(jglasgow): run tests for CDMA technologies 46