1# Copyright 2018 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.client.cros.audio import audio_test_data 6from autotest_lib.client.cros.chameleon import chameleon_audio_ids 7from autotest_lib.server import utils 8 9AUTHOR = "Intel" 10NAME = "audio_AudioNodeSwitch.HDMI_while_playing_audio" 11PURPOSE = "Check if audio is routing through HDMI node" 12CRITERIA = "This test will fail if audio is not routing through selected node" 13TIME = "SHORT" 14TEST_CATEGORY = "Functional" 15TEST_CLASS = "audio" 16TEST_TYPE = "server" 17DEPENDENCIES = "audio_box, test_audio_jack_usb_hdmi" 18 19DOC = """ 20This test remotely tests audio nodes selection and audio routing. 21""" 22 23args_dict = utils.args_to_dict(args) 24chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict) 25 26def run(machine): 27 host = hosts.create_host(machine, chameleon_args=chameleon_args) 28 job.run_test("audio_AudioNodeSwitch", host=host, hdmi_node=True, 29 play_audio=True, tag='HDMI') 30parallel_simple(run, machines) 31