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" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "network" 13TEST_TYPE = "client" 14 15DOC = """ 16 Test that a modem can reregister after the network technology abruptly 17 changes. 18""" 19 20from autotest_lib.client.cros.cellular import cellular 21from autotest_lib.client.cros.cellular import labconfig 22 23 24config = labconfig.Configuration(args) 25technologies = config.get_technologies() 26gsm_technologies = [tech for tech in technologies 27 if cellular.TechnologyToFamily[tech] == cellular.TechnologyFamily.UMTS] 28 29# One can only roam with a given technology family 30job.run_test('cellular_Signal', 31 config=config, 32 technologies=gsm_technologies, 33 wait_for_disc=True, 34 verify_set_power=False, 35 tag='GSM.Wait') 36 37job.run_test('cellular_Signal', 38 config=config, 39 technologies=gsm_technologies, 40 wait_for_disc=False, 41 verify_set_power=False, 42 tag='GSM.NoWait') 43 44# TODO(jglasgow): run tests for CDMA technologies 45