aboutsummaryrefslogtreecommitdiff
path: root/crosperf/label.py
diff options
context:
space:
mode:
Diffstat (limited to 'crosperf/label.py')
-rw-r--r--crosperf/label.py20
1 files changed, 3 insertions, 17 deletions
diff --git a/crosperf/label.py b/crosperf/label.py
index bebc2706..d993c15c 100644
--- a/crosperf/label.py
+++ b/crosperf/label.py
@@ -1,8 +1,6 @@
-# -*- coding: utf-8 -*-
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-
"""The label of benchamrks."""
from __future__ import print_function
@@ -20,10 +18,8 @@ class Label(object):
def __init__(self,
name,
- build,
chromeos_image,
autotest_path,
- debug_path,
chromeos_root,
board,
remote,
@@ -32,7 +28,6 @@ class Label(object):
cache_only,
log_level,
compiler,
- skylab=False,
chrome_src=None):
self.image_type = self._GetImageType(chromeos_image)
@@ -43,10 +38,8 @@ class Label(object):
chromeos_image = os.path.expanduser(chromeos_image)
self.name = name
- self.build = build
self.chromeos_image = chromeos_image
self.autotest_path = autotest_path
- self.debug_path = debug_path
self.board = board
self.remote = remote
self.image_args = image_args
@@ -55,15 +48,14 @@ class Label(object):
self.log_level = log_level
self.chrome_version = ''
self.compiler = compiler
- self.skylab = skylab
if not chromeos_root:
if self.image_type == 'local':
chromeos_root = FileUtils().ChromeOSRootFromImage(chromeos_image)
if not chromeos_root:
- raise RuntimeError(
- "No ChromeOS root given for label '%s' and could "
- "not determine one from image path: '%s'." % (name, chromeos_image))
+ raise RuntimeError("No ChromeOS root given for label '%s' and could "
+ "not determine one from image path: '%s'." %
+ (name, chromeos_image))
else:
chromeos_root = FileUtils().CanonicalizeChromeOSRoot(chromeos_root)
if not chromeos_root:
@@ -126,10 +118,8 @@ class MockLabel(object):
def __init__(self,
name,
- build,
chromeos_image,
autotest_path,
- debug_path,
chromeos_root,
board,
remote,
@@ -138,13 +128,10 @@ class MockLabel(object):
cache_only,
log_level,
compiler,
- skylab=False,
chrome_src=None):
self.name = name
- self.build = build
self.chromeos_image = chromeos_image
self.autotest_path = autotest_path
- self.debug_path = debug_path
self.board = board
self.remote = remote
self.cache_dir = cache_dir
@@ -159,7 +146,6 @@ class MockLabel(object):
self.checksum = ''
self.log_level = log_level
self.compiler = compiler
- self.skylab = skylab
self.chrome_version = 'Fake Chrome Version 50'
def _GetImageType(self, chromeos_image):