• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "chromeos-chameleon"
8NAME = "audio_InternalCardNodes.unplug"
9PURPOSE = "Remotely controlled audio test checking audio nodes created for internal card."
10CRITERIA = """
11This test will fail if the nodes aren't marked as plugged as expected when the
12headset is unplugged.
13"""
14TIME = "SHORT"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "audio"
17TEST_TYPE = "server"
18ATTRIBUTES = "suite:audio_essential"
19# Currently, CrOS audio team rely on the audio_box to mark tests that should
20# run on a dedicated pool of DUTs.
21# This test doesn't necessarily need to be in a audio box.
22DEPENDENCIES = "audio_box"
23JOB_RETRIES = 1
24
25DOC = """
26This test remotely tests plugged audio nodes for internal cards.
27"""
28
29args_dict = utils.args_to_dict(args)
30chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
31
32def run(machine):
33    host = hosts.create_host(machine, chameleon_args=chameleon_args)
34    job.run_test("audio_InternalCardNodes", host=host, plug=False)
35
36parallel_simple(run, machines)
37