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