diff options
Diffstat (limited to 'crosperf/label.py')
-rw-r--r-- | crosperf/label.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crosperf/label.py b/crosperf/label.py index be7a868e..e8193529 100644 --- a/crosperf/label.py +++ b/crosperf/label.py @@ -1,6 +1,8 @@ #!/usr/bin/python -# Copyright 2011 Google Inc. All Rights Reserved. +# 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.""" @@ -10,7 +12,7 @@ from utils.file_utils import FileUtils class Label(object): def __init__(self, name, chromeos_image, chromeos_root, board, remote, - image_args, image_md5sum, cache_dir): + image_args, image_md5sum, cache_dir, chrome_src=None): # Expand ~ chromeos_root = os.path.expanduser(chromeos_root) chromeos_image = os.path.expanduser(chromeos_image) @@ -36,6 +38,11 @@ class Label(object): % (name, chromeos_root)) self.chromeos_root = chromeos_root + if not chrome_src: + self.chrome_src = os.path.join(self.chromeos_root, + "chroot/var/cache/chromeos-chrome/chrome-src-internal/src") + else: + chromeos_root = FileUtils().CanonicalizeChromeOSRoot(chrome_src) class MockLabel(object): |