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_AudioTestAssumptionCheck.suspend" 9PURPOSE = "Functionality check for chrome.audio and 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 20PY_VERSION = 3 21 22DOC = """ 23This test remotely tests if suspend, audio tests rely on, work correctly. 24""" 25 26def run(machine): 27 host = hosts.create_host(machine) 28 # The suspend_only flag is for crbug:978593, which causes the check to 29 # always fail. however, we still want to check the suspend operation as it 30 # also potentially fails the audio tests. This should be removed once the 31 # blocker is fixed 32 job.run_test("audio_AudioTestAssumptionCheck", host=host, suspend_only=True) 33 34parallel_simple(run, machines) 35