blob: 03e72cede14891ea2138992f12155f04dc8237b4 [file] [log] [blame]
# Copyright 2018 The Chromium 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
from autotest_lib.client.common_lib import error
from autotest_lib.client.cros import chrome_binary_test
from import graphics_utils
class graphics_Chrome(graphics_utils.GraphicsTest,
"""Runs a given Chrome unittests binary."""
version = 1
def run_once(self, unittests_binary_name, unittests_timeout):
logging.debug('Starting %s', unittests_binary_name)
unittests_binary_name, timeout=unittests_timeout)
except error.CmdTimeoutError:
raise error.TestFail(
'Failed: timeout running %s' % unittests_binary_name)
# TODO(ihf): Consider parsing the output from the test.
raise error.TestFail('Failed: %s' % unittests_binary_name)