| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 | |
| 6 """Utility class to build the Skia master BuildFactory's for ChromeOS buildbots. | |
| 7 | |
| 8 Overrides SkiaFactory with any ChromeOS-specific steps.""" | |
| 9 | |
| 10 | |
| 11 from skia_master_scripts import factory as skia_factory | |
| 12 from buildbot.process.properties import WithProperties | |
| 13 | |
| 14 | |
| 15 class ChromeOSFactory(skia_factory.SkiaFactory): | |
| 16 """Overrides for ChromeOS builds.""" | |
| 17 | |
| 18 def __init__(self, board, **kwargs): | |
| 19 """ Instantiates a ChromeOSFactory with properties and build steps specific | |
| 20 to ChromeOS devices. | |
| 21 | |
| 22 ssh_host: string indicating hostname or ip address of the target device | |
| 23 ssh_port: string indicating the ssh port on the target device | |
| 24 """ | |
| 25 skia_factory.SkiaFactory.__init__(self, flavor='chromeos', | |
| 26 deps_target_os='chromeos', **kwargs) | |
| 27 self._common_args += ['--ssh_host', WithProperties('%(ssh_host:-None)s'), | |
| 28 '--ssh_port', WithProperties('%(ssh_port:-None)s'), | |
| 29 '--board', board] | |
| 30 | |
| OLD | NEW |