| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 if 'Android' in bot: | 162 if 'Android' in bot: |
| 163 match.append('~tabl_mozilla_0') | 163 match.append('~tabl_mozilla_0') |
| 164 match.append('~desk_yahoonews_0') | 164 match.append('~desk_yahoonews_0') |
| 165 | 165 |
| 166 if 'NexusPlayer' in bot: | 166 if 'NexusPlayer' in bot: |
| 167 match.append('~ResourceCache') | 167 match.append('~ResourceCache') |
| 168 | 168 |
| 169 if 'iOS' in bot: | 169 if 'iOS' in bot: |
| 170 match.append('~WritePixels') | 170 match.append('~WritePixels') |
| 171 | 171 |
| 172 if 'GalaxyS4' in bot: # skia:4079 |
| 173 match.append('~imagefiltersclipped') |
| 174 |
| 172 if match: | 175 if match: |
| 173 args.append('--match') | 176 args.append('--match') |
| 174 args.extend(match) | 177 args.extend(match) |
| 175 | 178 |
| 176 return args | 179 return args |
| 177 cov_end = lineno() # Don't care about code coverage past here. | 180 cov_end = lineno() # Don't care about code coverage past here. |
| 178 | 181 |
| 179 | 182 |
| 180 def self_test(): | 183 def self_test(): |
| 181 import coverage # This way the bots don't need coverage.py to be installed. | 184 import coverage # This way the bots don't need coverage.py to be installed. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 218 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 216 self_test() | 219 self_test() |
| 217 sys.exit(0) | 220 sys.exit(0) |
| 218 | 221 |
| 219 if len(sys.argv) != 3: | 222 if len(sys.argv) != 3: |
| 220 print usage | 223 print usage |
| 221 sys.exit(1) | 224 sys.exit(1) |
| 222 | 225 |
| 223 with open(sys.argv[1], 'w') as out: | 226 with open(sys.argv[1], 'w') as out: |
| 224 json.dump(get_args(sys.argv[2]), out) | 227 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |