aboutsummaryrefslogtreecommitdiff
path: root/crosperf/results_cache.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/results_cache.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/results_cache.py')
-rw-r--r--crosperf/results_cache.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py
index de6e572a..232f13bc 100644
--- a/crosperf/results_cache.py
+++ b/crosperf/results_cache.py
@@ -471,7 +471,7 @@ class ResultsCache(object):
def Init(self, chromeos_image, chromeos_root, test_name, iteration,
test_args, profiler_args, machine_manager, board, cache_conditions,
logger_to_use, log_level, label, share_cache, suite,
- show_all_results):
+ show_all_results, run_local):
self.chromeos_image = chromeos_image
self.chromeos_root = chromeos_root
self.test_name = test_name
@@ -489,6 +489,7 @@ class ResultsCache(object):
self.suite = suite
self.log_level = log_level
self.show_all = show_all_results
+ self.run_local = run_local
def _GetCacheDirForRead(self):
matching_dirs = []
@@ -550,7 +551,7 @@ class ResultsCache(object):
machine_id_checksum = machine.machine_id_checksum
break
- temp_test_args = "%s %s" % (self.test_args, self.profiler_args)
+ temp_test_args = "%s %s %s" % (self.test_args, self.profiler_args, self.run_local)
test_args_checksum = hashlib.md5(
"".join(temp_test_args)).hexdigest()
return (image_path_checksum,