Home | History | Annotate | Download | only in audio_AudioBasicInternalSpeaker
      1 # Copyright 2017 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 from autotest_lib.server import utils
      6 
      7 AUTHOR = "chromeos-chameleon"
      8 NAME = "audio_AudioBasicInternalSpeaker.atrus_speaker"
      9 PURPOSE = "Remotely controlled USB speaker audio test."
     10 CRITERIA = "Test will fail if the captured audio does not match original file."
     11 TIME = "SHORT"
     12 TEST_CATEGORY = "Functional"
     13 TEST_CLASS = "audio"
     14 TEST_TYPE = "server"
     15 ATTRIBUTES = ("suite:bluestreak-release, suite:bluestreak, "
     16               "suite:bluestreak-pre-cq")
     17 DEPENDENCIES = "atrus, audio_board, audio_box, chameleon, usb_speaker"
     18 JOB_RETRIES = 3
     19 
     20 DOC = """
     21 This test remotely tests usb speaker audio function.
     22 """
     23 
     24 args_dict = utils.args_to_dict(args)
     25 chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
     26 
     27 
     28 def run_test(machine):
     29     host = hosts.create_host(machine, chameleon_args=chameleon_args)
     30     job.run_test("audio_AudioBasicInternalSpeaker", host=host,
     31             cfm_speaker=True, tag="atrus_speaker")
     32 
     33 parallel_simple(run_test, machines)
     34