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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 'iPad4': 'iPad4,1', | 253 'iPad4': 'iPad4,1', |
254 }[builder_dict['model']] | 254 }[builder_dict['model']] |
255 | 255 |
256 return None | 256 return None |
257 | 257 |
258 | 258 |
259 cov_skip.extend([lineno(), lineno() + 1]) | 259 cov_skip.extend([lineno(), lineno() + 1]) |
260 def product_board(builder_dict): | 260 def product_board(builder_dict): |
261 if 'Android' in builder_dict.get('os', ''): | 261 if 'Android' in builder_dict.get('os', ''): |
262 return { | 262 return { |
263 'AndroidOne': None, # TODO(borenet,kjlubick) | 263 'AndroidOne': 'sprout', |
264 'GalaxyS3': 'm0', #'smdk4x12', Detected incorrectly by swarming? | 264 'GalaxyS3': 'm0', #'smdk4x12', Detected incorrectly by swarming? |
265 'GalaxyS4': None, # TODO(borenet,kjlubick) | 265 'GalaxyS4': None, # TODO(borenet,kjlubick) |
266 'NVIDIA_Shield': 'foster', | 266 'NVIDIA_Shield': 'foster', |
267 'Nexus10': 'manta', | 267 'Nexus10': 'manta', |
268 'Nexus5': 'hammerhead', | 268 'Nexus5': 'hammerhead', |
269 'Nexus6': 'shamu', | 269 'Nexus6': 'shamu', |
270 'Nexus7': 'grouper', | 270 'Nexus7': 'grouper', |
271 'Nexus7v2': 'flo', | 271 'Nexus7v2': 'flo', |
272 'Nexus9': 'flounder', | 272 'Nexus9': 'flounder', |
273 'NexusPlayer': 'fugu', | 273 'NexusPlayer': 'fugu', |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 406 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
407 self_test() | 407 self_test() |
408 sys.exit(0) | 408 sys.exit(0) |
409 | 409 |
410 if len(sys.argv) != 3: | 410 if len(sys.argv) != 3: |
411 print usage | 411 print usage |
412 sys.exit(1) | 412 sys.exit(1) |
413 | 413 |
414 with open(sys.argv[1], 'w') as out: | 414 with open(sys.argv[1], 'w') as out: |
415 json.dump(get_builder_spec(sys.argv[2]), out) | 415 json.dump(get_builder_spec(sys.argv[2]), out) |
OLD | NEW |