Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: scripts/slave/recipes/android/perf.py

Issue 2204643002: [Android] Add failures to results log line for Host Info step. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: [Android] Add failures to results log line for Host Info step. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipes/android/perf.py
diff --git a/scripts/slave/recipes/android/perf.py b/scripts/slave/recipes/android/perf.py
index ad94fe113b8d711e9cee0248ebdb34f4f61ff8ae..2732007cd112e87db0ffc3b9ca355d031a6f3207 100644
--- a/scripts/slave/recipes/android/perf.py
+++ b/scripts/slave/recipes/android/perf.py
@@ -314,6 +314,45 @@ def GenTests(api):
parent_revision='deadbeef',
revision='deadbeef',
slavename='slavename',
- target='Release')
- + api.step_data('Host Info', retcode=87))
+ target='Release') +
+ api.override_step_data(
+ 'Host Info',
+ api.json.output({
+ 'valid': True,
+ 'failures': ['Failure A', 'Failure B'],
+ '_host_info': {
+ 'os_system': 'os_system',
+ 'os_release': 'os_release',
+ 'processor': 'processor',
+ 'num_cpus': 'num_cpus',
+ 'free_disk_space': 'free_disk_space',
+ 'python_version': 'python_version',
+ 'python_path': 'python_path',
+ 'devices': [{
+ "usb_status": True,
+ "blacklisted": None,
+ "ro.build.fingerprint": "fingerprint",
+ "battery": {
+ "status": "5",
+ "scale": "100",
+ "temperature": "240",
+ "level": "100",
+ "technology": "Li-ion",
+ "AC powered": "false",
+ "health": "2",
+ "voltage": "4302",
+ "Wireless powered": "false",
+ "USB powered": "true",
+ "Max charging current": "500000",
+ "present": "true"
+ },
+ "adb_status": "device",
+ "imei_slice": "",
+ "ro.build.product": "bullhead",
+ "ro.build.id": "MDB08Q",
+ "serial": "00d0d567893340f4",
+ "wifi_ip": ""
+ }]
+ }}),
+ retcode=87))

Powered by Google App Engine
This is Rietveld 408576698