• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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_AudioSanityCheck.suspend"
9PURPOSE = "Sanity check for suspend."
10CRITERIA = """
11This test will fail if target fail to suspend or wake up after a suspension.
12"""
13ATTRIBUTES = "suite:audio_advanced"
14TIME = "SHORT"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "audio"
17TEST_TYPE = "server"
18DEPENDENCIES = 'chameleon, audio_board'
19JOB_RETRIES = 1
20
21DOC = """
22This test remotely tests if suspend, audio tests rely on, work correctly.
23"""
24
25def run(machine):
26    host = hosts.create_host(machine)
27    # The suspend_only flag is for crbug:978593, which causes sanity check to
28    # always fail. however, we still want to check the suspend operation as it
29    # also potentially fails the audio tests. This should be removed once the
30    # blocker is fixed
31    job.run_test("audio_AudioSanityCheck", host=host, suspend_only=True)
32
33parallel_simple(run, machines)
34