| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 if blacklist: | 240 if blacklist: |
| 241 args.append('--blacklist') | 241 args.append('--blacklist') |
| 242 args.extend(blacklist) | 242 args.extend(blacklist) |
| 243 | 243 |
| 244 if match: | 244 if match: |
| 245 args.append('--match') | 245 args.append('--match') |
| 246 args.extend(match) | 246 args.extend(match) |
| 247 | 247 |
| 248 # These bots run out of memory running RAW codec tests. Do not run them in | 248 # These bots run out of memory running RAW codec tests. Do not run them in |
| 249 # parallel | 249 # parallel |
| 250 if 'NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot: | 250 if ('NexusPlayer' in bot or 'Nexus5' in bot or 'Nexus9' in bot |
| 251 or 'Win8-MSVC-ShuttleB' in bot): |
| 251 args.append('--noRAW_threading') | 252 args.append('--noRAW_threading') |
| 252 | 253 |
| 253 return args | 254 return args |
| 254 cov_end = lineno() # Don't care about code coverage past here. | 255 cov_end = lineno() # Don't care about code coverage past here. |
| 255 | 256 |
| 256 | 257 |
| 257 def self_test(): | 258 def self_test(): |
| 258 import coverage # This way the bots don't need coverage.py to be installed. | 259 import coverage # This way the bots don't need coverage.py to be installed. |
| 259 args = {} | 260 args = {} |
| 260 cases = [ | 261 cases = [ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 300 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 300 self_test() | 301 self_test() |
| 301 sys.exit(0) | 302 sys.exit(0) |
| 302 | 303 |
| 303 if len(sys.argv) != 3: | 304 if len(sys.argv) != 3: |
| 304 print usage | 305 print usage |
| 305 sys.exit(1) | 306 sys.exit(1) |
| 306 | 307 |
| 307 with open(sys.argv[1], 'w') as out: | 308 with open(sys.argv[1], 'w') as out: |
| 308 json.dump(get_args(sys.argv[2]), out) | 309 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |