1d9fa758292462c4200231f49286aa97750f5e689borenet#!/usr/bin/env python
2d9fa758292462c4200231f49286aa97750f5e689borenet#
3d9fa758292462c4200231f49286aa97750f5e689borenet# Copyright 2016 Google Inc.
4d9fa758292462c4200231f49286aa97750f5e689borenet#
5d9fa758292462c4200231f49286aa97750f5e689borenet# Use of this source code is governed by a BSD-style license that can be
6d9fa758292462c4200231f49286aa97750f5e689borenet# found in the LICENSE file.
7d9fa758292462c4200231f49286aa97750f5e689borenet
8d9fa758292462c4200231f49286aa97750f5e689borenet
9d9fa758292462c4200231f49286aa97750f5e689borenetimport collections
10d9fa758292462c4200231f49286aa97750f5e689borenetimport json
11d9fa758292462c4200231f49286aa97750f5e689borenet
12d9fa758292462c4200231f49286aa97750f5e689borenet
13d9fa758292462c4200231f49286aa97750f5e689borenetDEFAULT_SDK_ROOT = '/home/chrome-bot/android-sdk-linux'
14d9fa758292462c4200231f49286aa97750f5e689borenetMAC_SDK_ROOT = '/Users/chrome-bot/adt-bundle-mac-x86_64-20140702/sdk'
15d9fa758292462c4200231f49286aa97750f5e689borenetMACMINI_SDK_ROOT = '/Users/chrome-bot/android-sdk-macosx'
16d9fa758292462c4200231f49286aa97750f5e689borenet
17d9fa758292462c4200231f49286aa97750f5e689borenetSlaveInfo = collections.namedtuple('SlaveInfo',
18d9fa758292462c4200231f49286aa97750f5e689borenet                                   'serial android_sdk_root has_root')
19d9fa758292462c4200231f49286aa97750f5e689borenet
20d9fa758292462c4200231f49286aa97750f5e689borenetSLAVE_INFO = {
21d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-000':
22d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
23d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-001':
24d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
25d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-002':
26d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
27d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-003':
28d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
29d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-004':
30d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
31d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-005':
32d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
33d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-006':
34d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
35d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-007':
36d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
37d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-008':
38d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
39d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-mac-10_8-compile-009':
40d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', MAC_SDK_ROOT, True),
41d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-androidone-001':
42d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('AG86044202A04GC', DEFAULT_SDK_ROOT, True),
43d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-androidone-002':
44d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('AG8404EC06G02GC', DEFAULT_SDK_ROOT, True),
45d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-androidone-003':
46d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('AG8404EC0688EGC', DEFAULT_SDK_ROOT, True),
47d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-galaxys3-001':
48d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('4df713b8244a21cf', DEFAULT_SDK_ROOT, False),
49d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-galaxys3-002':
50d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('32309a56e9b3a09f', DEFAULT_SDK_ROOT, False),
51d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-galaxys4-001':
52d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('4d0032a5d8cb6125', MACMINI_SDK_ROOT, False),
53d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-galaxys4-002':
54d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('4d00353cd8ed61c3', MACMINI_SDK_ROOT, False),
55d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus5-001':
56d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('03f61449437cc47b', DEFAULT_SDK_ROOT, True),
57d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus5-002':
58d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('018dff3520c970f6', DEFAULT_SDK_ROOT, True),
59d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-nexus6-001':
60d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('ZX1G22JJWS', DEFAULT_SDK_ROOT, True),
61d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-nexus6-002':
62d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('ZX1G22JN35', DEFAULT_SDK_ROOT, True),
63d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-nexus6-003':
64d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('ZX1G22JXXM', DEFAULT_SDK_ROOT, True),
65d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus7-001':
66d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('015d210a13480604', DEFAULT_SDK_ROOT, True),
67d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus7-002':
68d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('015d18848c280217', DEFAULT_SDK_ROOT, True),
69d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus7-003':
70d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('015d16897c401e17', DEFAULT_SDK_ROOT, True),
71d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus9-001':
72d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('HT43RJT00022', DEFAULT_SDK_ROOT, True),
73d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus9-002':
74d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('HT4AEJT03112', DEFAULT_SDK_ROOT, True),
75d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus9-003':
76d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('HT4ADJT03339', DEFAULT_SDK_ROOT, True),
77d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus10-001':
78d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('R32C801B5LH', DEFAULT_SDK_ROOT, True),
79d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexus10-003':
80d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('R32CB017X2L', DEFAULT_SDK_ROOT, True),
81d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexusplayer-001':
82d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('D76C708B', DEFAULT_SDK_ROOT, True),
83d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu12-nexusplayer-002':
84d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('8AB5139A', DEFAULT_SDK_ROOT, True),
85d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-shuttle-ubuntu15-nvidia-shield-001':
86d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('04217150066510000078', MACMINI_SDK_ROOT, False),
87d9fa758292462c4200231f49286aa97750f5e689borenet  'skiabot-linux-housekeeper-003':
88d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', DEFAULT_SDK_ROOT, False),
89d9fa758292462c4200231f49286aa97750f5e689borenet  'vm690-m3': SlaveInfo('noserial', MACMINI_SDK_ROOT, False),
90d9fa758292462c4200231f49286aa97750f5e689borenet  'vm691-m3': SlaveInfo('noserial', MACMINI_SDK_ROOT, False),
91d9fa758292462c4200231f49286aa97750f5e689borenet  'vm692-m3': SlaveInfo('noserial', MACMINI_SDK_ROOT, False),
92d9fa758292462c4200231f49286aa97750f5e689borenet  'vm693-m3': SlaveInfo('noserial', MACMINI_SDK_ROOT, False),
93d9fa758292462c4200231f49286aa97750f5e689borenet  'default':
94d9fa758292462c4200231f49286aa97750f5e689borenet      SlaveInfo('noserial', DEFAULT_SDK_ROOT, False),
95d9fa758292462c4200231f49286aa97750f5e689borenet}
96d9fa758292462c4200231f49286aa97750f5e689borenet
97d9fa758292462c4200231f49286aa97750f5e689borenet
98d9fa758292462c4200231f49286aa97750f5e689borenetif __name__ == '__main__':
99d9fa758292462c4200231f49286aa97750f5e689borenet  print json.dumps(SLAVE_INFO)  # pragma: no cover
100d9fa758292462c4200231f49286aa97750f5e689borenet
101