# Copyright (c) 2014 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 from autotest_lib.server import test from autotest_lib.server.cros import telemetry_runner class telemetry_GpuTests(test.test): """Run a Chrome OS GPU telemetry test.""" version = 1 def run_once(self, host=None, test=None, args={}): """Run a GPU telemetry test. @param host: host we are running telemetry on. @param test: telemetry test we want to run. """ local = args.get("local") == "True" telemetry = telemetry_runner.TelemetryRunner(host, local) result = telemetry.run_gpu_test(test) logging.debug('Telemetry completed with a status of: %s with output:' ' %s', result.status, result.output)