Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: slave/skia_slave_scripts/run_gm.py

Issue 25820003: Use --resetGpuContext flag when running GM on Xoom (Closed) Base URL: http://skia.googlecode.com/svn/buildbot/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698