~nuclearbob/ubuntu-test-cases/touch-trace-export-dev

« back to all changes in this revision

Viewing changes to jenkins/setup_jenkins.py

  • Committer: Max Brustkern
  • Date: 2014-10-06 21:01:14 UTC
  • mfrom: (187.1.126 touch)
  • Revision ID: max@canonical.com-20141006210114-dxf7s210oyokzwl4
Merged latest changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
 
103
103
    params = {
104
104
        'name': device['slave-label'],
 
105
        'device_type': device['name'],
105
106
        'serial': device.get('serial', defserial),
106
107
        'publish': args.publish,
107
108
        'branch': args.branch,
108
109
        'imagetype': config_item['image-type'],
 
110
        'series': args.series,
109
111
        'image_opt': config_item.get('IMAGE_OPT', ''),
110
112
        'statsd_key': config_item.get('statsd-key', ''),
111
113
        'dashboard_host': config_item.get('dashboard-host', ''),
127
129
 
128
130
def _configure_qa_job(instance, env, args, config_item, device, test):
129
131
    defserial = '$(${BZRDIR}/scripts/get-adb-id ${NODE_NAME})'
 
132
    #If the slave is specified for this test, set it
 
133
    slave = getattr(test, 'device', device['slave-label'])
130
134
    params = {
131
 
        'name': device['slave-label'],
 
135
        'name': slave,
 
136
        'device_type': device['name'],
132
137
        'serial': device.get('serial', defserial),
133
138
        'publish': args.publish,
134
139
        'branch': args.branch,
135
140
        'imagetype': config_item['image-type'],
 
141
        'series': args.series,
136
142
        'image_opt': config_item.get('IMAGE_OPT', ''),
 
143
        'timeout': test.timeout,
137
144
        'test': test.name,
138
145
    }
139
146
    prefix = ""
149
156
 
150
157
 
151
158
def _configure_qa_jobs(instance, env, args, config_item, device):
152
 
    tests = testconfig.TESTSUITES
153
 
    tests = testconfig.filter_tests(tests, config_item['image-type'])
 
159
    tests = list(testconfig.TESTSUITES)
 
160
    tests = testconfig.filter_tests(tests, config_item['image-type'],
 
161
                                    device['name'])
154
162
    tests = [t for t in tests if not t.smoke]
155
163
    jobs = []
156
164
    for t in tests:
166
174
        'wait': args.wait,
167
175
        'projects': jobs,
168
176
        'smoke_job': smoke,
 
177
        'num_workers': device.get('num-workers', 1),
169
178
    }
170
179
    prefix = ""
171
180
    if(args.prefix):