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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/gerrit_refs.json

Issue 2122313002: Move known_devices file to ~/.android (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: with expectations 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 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 { 290 {
291 "cmd": [ 291 "cmd": [
292 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 292 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
293 "--adb-path", 293 "--adb-path",
294 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 294 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
295 "--blacklist-file", 295 "--blacklist-file",
296 "[SLAVE_BUILD]/src/out/bad_devices.json", 296 "[SLAVE_BUILD]/src/out/bad_devices.json",
297 "--json-output", 297 "--json-output",
298 "/path/to/tmp/json", 298 "/path/to/tmp/json",
299 "--known-devices-file", 299 "--known-devices-file",
300 "[CACHE]/known_android_devices" 300 "[HOME]/.android/known_devices.json"
301 ], 301 ],
302 "env": { 302 "env": {
303 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 303 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
304 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 304 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
305 }, 305 },
306 "name": "device_status_check", 306 "name": "device_status_check",
307 "~followup_annotations": [ 307 "~followup_annotations": [
308 "@@@STEP_TEXT@Online devices: 1@@@", 308 "@@@STEP_TEXT@Online devices: 1@@@",
309 "@@@STEP_LOG_LINE@json.output@[@@@", 309 "@@@STEP_LOG_LINE@json.output@[@@@",
310 "@@@STEP_LOG_LINE@json.output@ {@@@", 310 "@@@STEP_LOG_LINE@json.output@ {@@@",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 "-t", 413 "-t",
414 "Release" 414 "Release"
415 ], 415 ],
416 "env": { 416 "env": {
417 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 417 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
418 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 418 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
419 }, 419 },
420 "name": "provision_devices" 420 "name": "provision_devices"
421 }, 421 },
422 { 422 {
423 "cmd": [],
424 "name": "fix_device_file_format"
425 },
426 {
427 "cmd": [
428 "python",
429 "-u",
430 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
431 "[HOME]/.android/known_devices.json",
432 "/path/to/tmp/"
433 ],
434 "name": "fix_device_file_format.read_device_file",
435 "~followup_annotations": [
436 "@@@STEP_NEST_LEVEL@1@@@",
437 "@@@STEP_TEXT@file format is compatible@@@"
438 ]
439 },
440 {
423 "cmd": [ 441 "cmd": [
424 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 442 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
425 "--adb-path", 443 "--adb-path",
426 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 444 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
427 "--blacklist-file", 445 "--blacklist-file",
428 "[SLAVE_BUILD]/src/out/bad_devices.json", 446 "[SLAVE_BUILD]/src/out/bad_devices.json",
429 "--json-output", 447 "--json-output",
430 "/path/to/tmp/json", 448 "/path/to/tmp/json",
431 "--known-devices-file", 449 "--known-devices-file",
432 "[CACHE]/known_android_devices" 450 "[HOME]/.android/known_devices.json"
433 ], 451 ],
434 "env": { 452 "env": {
435 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 453 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
436 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 454 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
437 }, 455 },
438 "name": "device_status_check (2)", 456 "name": "device_status_check (2)",
439 "~followup_annotations": [ 457 "~followup_annotations": [
440 "@@@STEP_TEXT@Online devices: 1@@@", 458 "@@@STEP_TEXT@Online devices: 1@@@",
441 "@@@STEP_LOG_LINE@json.output@[@@@", 459 "@@@STEP_LOG_LINE@json.output@[@@@",
442 "@@@STEP_LOG_LINE@json.output@ {@@@", 460 "@@@STEP_LOG_LINE@json.output@ {@@@",
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 728 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
711 }, 729 },
712 "name": "stack_tool_for_asan" 730 "name": "stack_tool_for_asan"
713 }, 731 },
714 { 732 {
715 "name": "$result", 733 "name": "$result",
716 "recipe_result": null, 734 "recipe_result": null,
717 "status_code": 0 735 "status_code": 0
718 } 736 }
719 ] 737 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698