| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 | 7 |
| 8 DEPS = [ | 8 DEPS = [ |
| 9 'adb', | 9 'adb', |
| 10 'chromium', | 10 'chromium', |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 path_config='kitchen', | 307 path_config='kitchen', |
| 308 repo_name='src', | 308 repo_name='src', |
| 309 repo_url=REPO_URL, | 309 repo_url=REPO_URL, |
| 310 mastername='chromium.perf', | 310 mastername='chromium.perf', |
| 311 buildername='Android Nexus5 Perf (1)', | 311 buildername='Android Nexus5 Perf (1)', |
| 312 parent_buildername='parent_buildername', | 312 parent_buildername='parent_buildername', |
| 313 parent_buildnumber='1729', | 313 parent_buildnumber='1729', |
| 314 parent_revision='deadbeef', | 314 parent_revision='deadbeef', |
| 315 revision='deadbeef', | 315 revision='deadbeef', |
| 316 slavename='slavename', | 316 slavename='slavename', |
| 317 target='Release') | 317 target='Release') + |
| 318 + api.step_data('Host Info', retcode=87)) | 318 api.override_step_data( |
| 319 'Host Info', |
| 320 api.json.output({ |
| 321 'valid': True, |
| 322 'failures': ['Failure A', 'Failure B'], |
| 323 '_host_info': { |
| 324 'os_system': 'os_system', |
| 325 'os_release': 'os_release', |
| 326 'processor': 'processor', |
| 327 'num_cpus': 'num_cpus', |
| 328 'free_disk_space': 'free_disk_space', |
| 329 'python_version': 'python_version', |
| 330 'python_path': 'python_path', |
| 331 'devices': [{ |
| 332 "usb_status": True, |
| 333 "blacklisted": None, |
| 334 "ro.build.fingerprint": "fingerprint", |
| 335 "battery": { |
| 336 "status": "5", |
| 337 "scale": "100", |
| 338 "temperature": "240", |
| 339 "level": "100", |
| 340 "technology": "Li-ion", |
| 341 "AC powered": "false", |
| 342 "health": "2", |
| 343 "voltage": "4302", |
| 344 "Wireless powered": "false", |
| 345 "USB powered": "true", |
| 346 "Max charging current": "500000", |
| 347 "present": "true" |
| 348 }, |
| 349 "adb_status": "device", |
| 350 "imei_slice": "", |
| 351 "ro.build.product": "bullhead", |
| 352 "ro.build.id": "MDB08Q", |
| 353 "serial": "00d0d567893340f4", |
| 354 "wifi_ip": "" |
| 355 }] |
| 356 }}), |
| 357 retcode=87)) |
| 319 | 358 |
| OLD | NEW |