OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 # Recipe module for Skia Swarming test. | 6 # Recipe module for Skia Swarming test. |
7 | 7 |
8 | 8 |
9 DEPS = [ | 9 DEPS = [ |
10 'build/file', | 10 'build/file', |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 if api.vars.upload_dm_results: | 156 if api.vars.upload_dm_results: |
157 args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) | 157 args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) |
158 | 158 |
159 skip_flag = None | 159 skip_flag = None |
160 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': | 160 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': |
161 skip_flag = '--nogpu' | 161 skip_flag = '--nogpu' |
162 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': | 162 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU': |
163 skip_flag = '--nocpu' | 163 skip_flag = '--nocpu' |
164 if skip_flag: | 164 if skip_flag: |
165 args.append(skip_flag) | 165 args.append(skip_flag) |
166 args.extend(api.vars.dm_flags) | 166 args.extend(api.vars.builder_spec['dm_flags']) |
167 | 167 |
168 api.run(api.flavor.step, 'dm', cmd=args, | 168 api.run(api.flavor.step, 'dm', cmd=args, |
169 abort_on_failure=False, | 169 abort_on_failure=False, |
170 env=api.vars.default_env) | 170 env=api.vars.default_env) |
171 | 171 |
172 if api.vars.upload_dm_results: | 172 if api.vars.upload_dm_results: |
173 # Copy images and JSON to host machine if needed. | 173 # Copy images and JSON to host machine if needed. |
174 api.flavor.copy_directory_contents_to_host( | 174 api.flavor.copy_directory_contents_to_host( |
175 api.flavor.device_dirs.dm_dir, api.vars.dm_dir) | 175 api.flavor.device_dirs.dm_dir, api.vars.dm_dir) |
176 | 176 |
177 # See skia:2789. | 177 # See skia:2789. |
178 if ('Valgrind' in api.vars.builder_name and | 178 if ('Valgrind' in api.vars.builder_name and |
179 api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU'): | 179 api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU'): |
180 abandonGpuContext = list(args) | 180 abandonGpuContext = list(args) |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 api.path.exists( | 457 api.path.exists( |
458 api.path['slave_build'].join('skia'), | 458 api.path['slave_build'].join('skia'), |
459 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 459 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
460 'skimage', 'VERSION'), | 460 'skimage', 'VERSION'), |
461 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', | 461 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', |
462 'skp', 'VERSION'), | 462 'skp', 'VERSION'), |
463 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') | 463 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') |
464 ) + | 464 ) + |
465 api.platform('win', 64) | 465 api.platform('win', 64) |
466 ) | 466 ) |
OLD | NEW |