blob: 08806c531bb0189c4bce6f6daab01e9ac96e9b1e [file] [log] [blame]
# copyright (c) 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging, threading
import time
from autotest_lib.server import test
from autotest_lib.client.common_lib import error
_CHROME_PATH = '/opt/google/chrome/chrome'
_DO_NOT_RUN_ON_BOARD = ['monroe']
class platform_InternalDisplay(test.test):
version = 1
def run_suspend(self):
"""Suspend i.e. powerd_dbus_suspend and wait
@returns boot_id for the following resume
boot_id =
thread = threading.Thread(target =
return boot_id
def run_once(self,host): = host
board_type =
if board_type in _DO_NOT_RUN_ON_TYPE:
raise error.TestNAError('DUT is %s type. Test Skipped' %board_type)
board =':')[-1]
if board in _DO_NOT_RUN_ON_BOARD:
raise error.TestNAError(
'Monroe does not have internal display. Test Skipped')
if is not 'internal_display':
raise error.TestFail('Internal display is missing after reboot.')
boot_id = self.run_suspend()'DUT suspended'), _LONG_TIMEOUT)'DUT resumed')
if is not 'internal_display':
raise error.TestFail(
'Internal display is missing after suspend & resume.')