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

Side by Side Diff: scripts/slave/recipes/cronet.expected/local_test.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py", 186 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
187 "[SLAVE_BUILD]/src/out/logcat" 187 "[SLAVE_BUILD]/src/out/logcat"
188 ], 188 ],
189 "env": { 189 "env": {
190 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 190 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
191 }, 191 },
192 "name": "spawn_logcat_monitor" 192 "name": "spawn_logcat_monitor"
193 }, 193 },
194 { 194 {
195 "cmd": [ 195 "cmd": [
196 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py" 196 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
197 "--json-output",
198 "/path/to/tmp/json"
197 ], 199 ],
198 "env": { 200 "env": {
199 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 201 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
200 }, 202 },
201 "name": "device_status_check" 203 "name": "device_status_check",
204 "~followup_annotations": [
205 "@@@STEP_LOG_LINE@json.output@[@@@",
206 "@@@STEP_LOG_LINE@json.output@ {@@@",
207 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
208 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
209 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
210 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
211 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
212 "@@@STEP_LOG_LINE@json.output@ \"level\": \"100\", @@@",
213 "@@@STEP_LOG_LINE@json.output@ \"present\": \"true\", @@@",
214 "@@@STEP_LOG_LINE@json.output@ \"scale\": \"100\", @@@",
215 "@@@STEP_LOG_LINE@json.output@ \"status\": \"5\", @@@",
216 "@@@STEP_LOG_LINE@json.output@ \"technology\": \"Li-ion\", @@@",
217 "@@@STEP_LOG_LINE@json.output@ \"temperature\": \"249\", @@@",
218 "@@@STEP_LOG_LINE@json.output@ \"voltage\": \"4286\"@@@",
219 "@@@STEP_LOG_LINE@json.output@ }, @@@",
220 "@@@STEP_LOG_LINE@json.output@ \"build\": \"LRX21O\", @@@",
221 "@@@STEP_LOG_LINE@json.output@ \"build_detail\": \"google/razor/flo:5.0 /LRX21O/1570415:userdebug/dev-keys\", @@@",
222 "@@@STEP_LOG_LINE@json.output@ \"imei_slice\": \"Unknown\", @@@",
223 "@@@STEP_LOG_LINE@json.output@ \"serial\": \"07a00ca4\", @@@",
224 "@@@STEP_LOG_LINE@json.output@ \"type\": \"flo\", @@@",
225 "@@@STEP_LOG_LINE@json.output@ \"wifi_ip\": \"\"@@@",
226 "@@@STEP_LOG_LINE@json.output@ }@@@",
227 "@@@STEP_LOG_LINE@json.output@]@@@",
228 "@@@STEP_LOG_END@json.output@@@"
229 ]
202 }, 230 },
203 { 231 {
204 "cmd": [ 232 "cmd": [
205 "python", 233 "python",
206 "-u", 234 "-u",
207 "[SLAVE_BUILD]/src/build/android/provision_devices.py", 235 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
208 "-t", 236 "-t",
209 "Debug" 237 "Debug"
210 ], 238 ],
211 "env": { 239 "env": {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@", 333 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@",
306 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@", 334 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@",
307 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@", 335 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@",
308 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@", 336 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@",
309 "@@@STEP_LOG_LINE@python.inline@ print l@@@", 337 "@@@STEP_LOG_LINE@python.inline@ print l@@@",
310 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 338 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
311 "@@@STEP_LOG_END@python.inline@@@" 339 "@@@STEP_LOG_END@python.inline@@@"
312 ] 340 ]
313 } 341 }
314 ] 342 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698