| 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 |
| 175 match.append('~bleed_image') |
| 174 | 176 |
| 175 if match: | 177 if match: |
| 176 args.append('--match') | 178 args.append('--match') |
| 177 args.extend(match) | 179 args.extend(match) |
| 178 | 180 |
| 179 return args | 181 return args |
| 180 cov_end = lineno() # Don't care about code coverage past here. | 182 cov_end = lineno() # Don't care about code coverage past here. |
| 181 | 183 |
| 182 | 184 |
| 183 def self_test(): | 185 def self_test(): |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 220 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 219 self_test() | 221 self_test() |
| 220 sys.exit(0) | 222 sys.exit(0) |
| 221 | 223 |
| 222 if len(sys.argv) != 3: | 224 if len(sys.argv) != 3: |
| 223 print usage | 225 print usage |
| 224 sys.exit(1) | 226 sys.exit(1) |
| 225 | 227 |
| 226 with open(sys.argv[1], 'w') as out: | 228 with open(sys.argv[1], 'w') as out: |
| 227 json.dump(get_args(sys.argv[2]), out) | 229 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |