1 # Copyright (c) 2014 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 5 import logging 6 7 from autotest_lib.server import test 8 from autotest_lib.server.cros import telemetry_runner 9 10 11 class telemetry_GpuTests(test.test): 12 """Run a Chrome OS GPU telemetry test.""" 13 version = 1 14 15 16 def run_once(self, host=None, test=None, args={}): 17 """Run a GPU telemetry test. 18 19 @param host: host we are running telemetry on. 20 @param test: telemetry test we want to run. 21 """ 22 local = args.get("local") == "True" 23 telemetry = telemetry_runner.TelemetryRunner(host, local) 24 result = telemetry.run_gpu_test(test) 25 logging.debug('Telemetry completed with a status of: %s with output:' 26 ' %s', result.status, result.output) 27