1# Copyright 2015 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 5from autotest_lib.server import utils 6 7AUTHOR = "Chrome OS Team" 8NAME = "firmware_PDConnect" 9PURPOSE = "Servo based PD Connect/Disconnect test" 10ATTRIBUTES = "suite:faft_pd" 11CRITERIA = "This test will fail if PD connection is not successful each attempt" 12TIME = "MEDIUM" 13TEST_CATEGORY = "Functional" 14TEST_CLASS = "firmware" 15TEST_TYPE = "server" 16 17DOC = """ 18This test checks: 19 - PD Dual role mode is operational in the DUT 20 - Abiility to disconnect, then reconnect establishing a successful PD contract 21""" 22 23args_dict = utils.args_to_dict(args) 24servo_args = hosts.CrosHost.get_servo_arguments(args_dict) 25pdtester_args = hosts.CrosHost.get_pdtester_arguments(args_dict) 26 27def run(machine): 28 host = hosts.create_host(machine, servo_args=servo_args, 29 pdtester_args=pdtester_args) 30 job.run_test("firmware_PDConnect", host=host, cmdline_args=args, 31 disable_sysinfo=True, flip_cc=False, dts_mode=False, 32 tag="normal") 33 34parallel_simple(run, machines) 35