aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark.py
diff options
context:
space:
mode:
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