aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark.py
diff options
context:
space:
mode:
authorTing-Yuan Huang <laszio@google.com>2015-07-02 13:09:03 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-16 06:52:29 +0000
commitbc2d3d13d2e1928217140a76acdf9f9917b1fa30 (patch)
tree72121d13ef4c47492318f758177ca1f40c07b3eb /crosperf/benchmark.py
parent27dc583d33d461daad462f82ab7974b07cb31117 (diff)
downloadtoolchain-utils-bc2d3d13d2e1928217140a76acdf9f9917b1fa30.tar.gz
Add 'run_local' to run the test harness locally.
The option 'run_local: True|False' will be passed into autotest. For example, this is how test_that will be invoked: test_that --arges="run_local=True ..." ... BUG=None TEST=Tested with the folllowing combinations. benchmark: sunspider, smoothness.top_25_smooth perf_args: record -e cycles,instructions / (none) Change-Id: I7315027a7c9433d17a9f3fe54d7e8c3f480ea4f4 Reviewed-on: https://chrome-internal-review.googlesource.com/217370 Reviewed-by: Caroline Tice <cmtice@google.com> Tested-by: Ting-Yuan Huang <laszio@google.com> Commit-Queue: Ting-Yuan Huang <laszio@google.com>
Diffstat (limited to 'crosperf/benchmark.py')
-rw-r--r--crosperf/benchmark.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/crosperf/benchmark.py b/crosperf/benchmark.py
index 506a825d..7fabf0b4 100644
--- a/crosperf/benchmark.py
+++ b/crosperf/benchmark.py
@@ -17,7 +17,7 @@ class Benchmark(object):
def __init__(self, name, test_name, test_args, iterations,
rm_chroot_tmp, perf_args, suite="",
- show_all_results=False, retries=0):
+ show_all_results=False, retries=0, run_local=False):
self.name = name
#For telemetry, this is the benchmark name.
self.test_name = test_name
@@ -32,3 +32,6 @@ class Benchmark(object):
self.retries = retries
if self.suite == "telemetry":
self.show_all_results = True
+ if run_local and self.suite != 'telemetry_Crosperf':
+ raise Exception("run_local is only supported by telemetry_Crosperf.")
+ self.run_local = run_local