OLD | NEW |
1 # | 1 # |
2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
9 | 9 |
10 usage = ''' | 10 usage = ''' |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 if 'NexusPlayer' in bot: | 165 if 'NexusPlayer' in bot: |
166 match.append('~ResourceCache') | 166 match.append('~ResourceCache') |
167 | 167 |
168 if 'iOS' in bot: | 168 if 'iOS' in bot: |
169 match.append('~WritePixels') | 169 match.append('~WritePixels') |
170 | 170 |
171 if 'GalaxyS4' in bot: # skia:4079 | 171 if 'GalaxyS4' in bot: # skia:4079 |
172 match.append('~imagefiltersclipped') | 172 match.append('~imagefiltersclipped') |
173 match.append('~scaled_tilemodes_npot') | 173 match.append('~scaled_tilemodes_npot') |
174 # skia:4367 | 174 match.append('~bleed_image') # skia:4367 |
175 match.append('~bleed_image') | 175 match.append('~ReadPixels') # skia:4368 |
176 | 176 |
177 if match: | 177 if match: |
178 args.append('--match') | 178 args.append('--match') |
179 args.extend(match) | 179 args.extend(match) |
180 | 180 |
181 return args | 181 return args |
182 cov_end = lineno() # Don't care about code coverage past here. | 182 cov_end = lineno() # Don't care about code coverage past here. |
183 | 183 |
184 | 184 |
185 def self_test(): | 185 def self_test(): |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 220 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
221 self_test() | 221 self_test() |
222 sys.exit(0) | 222 sys.exit(0) |
223 | 223 |
224 if len(sys.argv) != 3: | 224 if len(sys.argv) != 3: |
225 print usage | 225 print usage |
226 sys.exit(1) | 226 sys.exit(1) |
227 | 227 |
228 with open(sys.argv[1], 'w') as out: | 228 with open(sys.argv[1], 'w') as out: |
229 json.dump(get_args(sys.argv[2]), out) | 229 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |