OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ Run the Skia GM executable. """ | 6 """ Run the Skia GM executable. """ |
7 | 7 |
8 from build_step import BuildStep | 8 from build_step import BuildStep |
9 import build_step | 9 import build_step |
10 import os | 10 import os |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 device_gm_expectations_path = self._flavor_utils.DevicePathJoin( | 62 device_gm_expectations_path = self._flavor_utils.DevicePathJoin( |
63 self._device_dirs.GMExpectedDir(), build_step.GM_EXPECTATIONS_FILENAME) | 63 self._device_dirs.GMExpectedDir(), build_step.GM_EXPECTATIONS_FILENAME) |
64 if self._flavor_utils.DevicePathExists(device_gm_expectations_path): | 64 if self._flavor_utils.DevicePathExists(device_gm_expectations_path): |
65 cmd.extend(['--readPath', device_gm_expectations_path]) | 65 cmd.extend(['--readPath', device_gm_expectations_path]) |
66 | 66 |
67 additional_tests_to_ignore = self._GetAdditionalTestsToIgnore() | 67 additional_tests_to_ignore = self._GetAdditionalTestsToIgnore() |
68 if additional_tests_to_ignore: | 68 if additional_tests_to_ignore: |
69 cmd.extend(['--ignoreTests'] + additional_tests_to_ignore) | 69 cmd.extend(['--ignoreTests'] + additional_tests_to_ignore) |
70 | 70 |
71 # msaa16 is flaky on Macs (driver bug?) so we skip the test for now | 71 if 'Xoom' in self._builder_name: |
| 72 # The Xoom's GPU will crash on some tests if we don't use this flag. |
| 73 # http://code.google.com/p/skia/issues/detail?id=1434 |
| 74 cmd.append('--resetGpuContext') |
72 if sys.platform == 'darwin': | 75 if sys.platform == 'darwin': |
| 76 # msaa16 is flaky on Macs (driver bug?) so we skip the test for now |
73 cmd.extend(['--config', 'defaults', '~msaa16']) | 77 cmd.extend(['--config', 'defaults', '~msaa16']) |
74 elif ('RazrI' in self._builder_name or | 78 elif ('RazrI' in self._builder_name or |
75 'Nexus10' in self._builder_name or | 79 'Nexus10' in self._builder_name or |
76 'GalaxyNexus' in self._builder_name or | 80 'GalaxyNexus' in self._builder_name or |
77 'Nexus4' in self._builder_name): | 81 'Nexus4' in self._builder_name): |
78 cmd.extend(['--config', 'defaults', 'msaa4']) | 82 cmd.extend(['--config', 'defaults', 'msaa4']) |
79 elif (not 'NoGPU' in self._builder_name and | 83 elif (not 'NoGPU' in self._builder_name and |
80 not 'ChromeOS' in self._builder_name): | 84 not 'ChromeOS' in self._builder_name): |
81 cmd.extend(['--config', 'defaults', 'msaa16']) | 85 cmd.extend(['--config', 'defaults', 'msaa16']) |
82 self._flavor_utils.RunFlavoredCmd('gm', cmd) | 86 self._flavor_utils.RunFlavoredCmd('gm', cmd) |
83 | 87 |
84 | 88 |
85 if '__main__' == __name__: | 89 if '__main__' == __name__: |
86 sys.exit(BuildStep.RunBuildStep(RunGM)) | 90 sys.exit(BuildStep.RunBuildStep(RunGM)) |
OLD | NEW |