aboutsummaryrefslogtreecommitdiff
path: root/crosperf/label.py
diff options
context:
space:
mode:
authorcmtice <cmtice@google.com>2014-05-29 16:16:25 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-02 22:21:14 +0000
commit2a370f7af34f6b126e80ef55891b9bff6a2858bb (patch)
tree96bab70d1745bccd2fdc06b3662738e4db314852 /crosperf/label.py
parent4d24b3a0e8a8fae5ac9cf00c3889288c0571b1fc (diff)
downloadtoolchain-utils-2a370f7af34f6b126e80ef55891b9bff6a2858bb.tar.gz
Add --cache_only global setting to crosperf.
The CL adds a new setting, --cache_only, which causes crosperf to ONLY report test results that it finds in the cache (it will NOT rerun any tests, even if no cache results are found). This is partly for implementing a weekly summary report, where we want to compare the nightly results from the past week, but not actually rerun anything. BUG=None TEST=I tested this option while generating weekly test reports, and it worked as it is supposed to. Change-Id: Icb1f5343f76ce999bebd0810bb86ab64a7577313 Reviewed-on: https://chrome-internal-review.googlesource.com/164890 Reviewed-by: Yunlian Jiang <yunlian@google.com> Commit-Queue: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/label.py')
-rw-r--r--crosperf/label.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/crosperf/label.py b/crosperf/label.py
index bbcf18ae..91f6e97e 100644
--- a/crosperf/label.py
+++ b/crosperf/label.py
@@ -13,7 +13,7 @@ from utils import misc
class Label(object):
def __init__(self, name, chromeos_image, chromeos_root, board, remote,
- image_args, cache_dir, chrome_src=None):
+ image_args, cache_dir, cache_only, chrome_src=None):
self.image_type = self._GetImageType(chromeos_image)
@@ -28,6 +28,7 @@ class Label(object):
self.remote = remote
self.image_args = image_args
self.cache_dir = cache_dir
+ self.cache_only = cache_only
if not chromeos_root:
if self.image_type == "local":
@@ -68,12 +69,13 @@ class Label(object):
class MockLabel(object):
def __init__(self, name, chromeos_image, chromeos_root, board, remote,
- image_args, cache_dir, chrome_src=None):
+ image_args, cache_dir, cache_only, chrome_src=None):
self.name = name
self.chromeos_image = chromeos_image
self.board = board
self.remote = remote
self.cache_dir = cache_dir
+ self.cache_only = cache_only
if not chromeos_root:
self.chromeos_root = "/tmp/chromeos_root"
else: