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

Side by Side Diff: scripts/slave/recipes/cronet.expected/android_cronet_builder.json

Issue 815213002: Cause chromium_android recipe to consume device_status_check's json. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Add missing files Created 6 years 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 unified diff | Download patch
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n", 6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n",
7 "[SLAVE_BUILD]" 7 "[SLAVE_BUILD]"
8 ], 8 ],
9 "name": "cleanup index.lock", 9 "name": "cleanup index.lock",
10 "~followup_annotations": [ 10 "~followup_annotations": [
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py", 219 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
220 "[SLAVE_BUILD]/src/out/logcat" 220 "[SLAVE_BUILD]/src/out/logcat"
221 ], 221 ],
222 "env": { 222 "env": {
223 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 223 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
224 }, 224 },
225 "name": "spawn_logcat_monitor" 225 "name": "spawn_logcat_monitor"
226 }, 226 },
227 { 227 {
228 "cmd": [ 228 "cmd": [
229 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py" 229 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
230 "--json-output",
231 "/path/to/tmp/json"
230 ], 232 ],
231 "env": { 233 "env": {
232 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 234 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
233 }, 235 },
234 "name": "device_status_check" 236 "name": "device_status_check",
237 "~followup_annotations": [
238 "@@@STEP_LOG_LINE@json.output@[@@@",
239 "@@@STEP_LOG_LINE@json.output@ {@@@",
240 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
241 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
242 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
243 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
244 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
245 "@@@STEP_LOG_LINE@json.output@ \"level\": \"100\", @@@",
246 "@@@STEP_LOG_LINE@json.output@ \"present\": \"true\", @@@",
247 "@@@STEP_LOG_LINE@json.output@ \"scale\": \"100\", @@@",
248 "@@@STEP_LOG_LINE@json.output@ \"status\": \"5\", @@@",
249 "@@@STEP_LOG_LINE@json.output@ \"technology\": \"Li-ion\", @@@",
250 "@@@STEP_LOG_LINE@json.output@ \"temperature\": \"249\", @@@",
251 "@@@STEP_LOG_LINE@json.output@ \"voltage\": \"4286\"@@@",
252 "@@@STEP_LOG_LINE@json.output@ }, @@@",
253 "@@@STEP_LOG_LINE@json.output@ \"build\": \"LRX21O\", @@@",
254 "@@@STEP_LOG_LINE@json.output@ \"build_detail\": \"google/razor/flo:5.0 /LRX21O/1570415:userdebug/dev-keys\", @@@",
255 "@@@STEP_LOG_LINE@json.output@ \"imei_slice\": \"Unknown\", @@@",
256 "@@@STEP_LOG_LINE@json.output@ \"serial\": \"07a00ca4\", @@@",
257 "@@@STEP_LOG_LINE@json.output@ \"type\": \"flo\", @@@",
258 "@@@STEP_LOG_LINE@json.output@ \"wifi_ip\": \"\"@@@",
259 "@@@STEP_LOG_LINE@json.output@ }@@@",
260 "@@@STEP_LOG_LINE@json.output@]@@@",
261 "@@@STEP_LOG_END@json.output@@@"
262 ]
235 }, 263 },
236 { 264 {
237 "cmd": [ 265 "cmd": [
238 "python", 266 "python",
239 "-u", 267 "-u",
240 "[SLAVE_BUILD]/src/build/android/provision_devices.py", 268 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
241 "-t", 269 "-t",
242 "Release" 270 "Release"
243 ], 271 ],
244 "env": { 272 "env": {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@", 370 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@",
343 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@", 371 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@",
344 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@", 372 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@",
345 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@", 373 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@",
346 "@@@STEP_LOG_LINE@python.inline@ print l@@@", 374 "@@@STEP_LOG_LINE@python.inline@ print l@@@",
347 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 375 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
348 "@@@STEP_LOG_END@python.inline@@@" 376 "@@@STEP_LOG_END@python.inline@@@"
349 ] 377 ]
350 } 378 }
351 ] 379 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698