diff options
author | Yunlian Jiang <yunlian@google.com> | 2015-12-16 11:06:13 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-12-16 20:58:59 +0000 |
commit | d97422aef5709f0a3b16b4efebc397c891940c95 (patch) | |
tree | a3f98942d18ae9dfc1e0f1614851579f693905ed /crosperf/benchmark_run.py | |
parent | f2a3ef46f75d2196a93d3ed27f4d1fcf22b54fbe (diff) | |
download | toolchain-utils-d97422aef5709f0a3b16b4efebc397c891940c95.tar.gz |
crosperf: clean lint warnings.
BUG=chromium:567921
TEST=these three files are lint warning free.
Change-Id: I23f9120283fc82958abcc16f47cd29d5800bd181
Reviewed-on: https://chrome-internal-review.googlesource.com/242485
Commit-Ready: Yunlian Jiang <yunlian@google.com>
Tested-by: Yunlian Jiang <yunlian@google.com>
Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/benchmark_run.py')
-rw-r--r-- | crosperf/benchmark_run.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crosperf/benchmark_run.py b/crosperf/benchmark_run.py index fb3d6f33..75de3d85 100644 --- a/crosperf/benchmark_run.py +++ b/crosperf/benchmark_run.py @@ -3,8 +3,10 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +"""Module of benchmark runs.""" +from __future__ import print_function + import datetime -import os import threading import time import traceback @@ -17,7 +19,6 @@ from results_cache import MockResult from results_cache import MockResultsCache from results_cache import Result from results_cache import ResultsCache -from results_cache import TelemetryResult STATUS_FAILED = 'FAILED' STATUS_SUCCEEDED = 'SUCCEEDED' @@ -28,7 +29,7 @@ STATUS_PENDING = 'PENDING' class BenchmarkRun(threading.Thread): - + """The benchmarkrun class.""" def __init__(self, name, benchmark, label, iteration, cache_conditions, machine_manager, logger_to_use, log_level, share_cache): threading.Thread.__init__(self) @@ -50,6 +51,7 @@ class BenchmarkRun(threading.Thread): self.cache_hit = False self.failure_reason = '' self.test_args = benchmark.test_args + self.cache = None self.profiler_args = self._GetExtraAutotestArgs() self._ce = command_executer.GetCommandExecuter(self._logger, log_level=self.log_level) |