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

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

Issue 2103553002: Check that device file exists first before reverting. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: rebase 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 "--adb-path", 376 "--adb-path",
377 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 377 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
378 ], 378 ],
379 "env": { 379 "env": {
380 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 380 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
381 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 381 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
382 }, 382 },
383 "name": "authorize_adb_devices" 383 "name": "authorize_adb_devices"
384 }, 384 },
385 { 385 {
386 "cmd": [],
387 "name": "fix_device_file_format"
388 },
389 {
390 "cmd": [
391 "python",
392 "-u",
393 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
394 "[BUILD]/site_config/.known_devices",
395 "/path/to/tmp/"
396 ],
397 "name": "fix_device_file_format.read_device_file",
398 "~followup_annotations": [
399 "@@@STEP_NEST_LEVEL@1@@@",
400 "@@@STEP_TEXT@file format is compatible@@@"
401 ]
402 },
403 {
404 "cmd": [ 386 "cmd": [
405 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 387 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
406 "--adb-path", 388 "--adb-path",
407 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 389 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
408 "--blacklist-file", 390 "--blacklist-file",
409 "[SLAVE_BUILD]/src/out/bad_devices.json", 391 "[SLAVE_BUILD]/src/out/bad_devices.json",
410 "--json-output", 392 "--json-output",
411 "/path/to/tmp/json", 393 "/path/to/tmp/json",
412 "--known-devices-file", 394 "--known-devices-file",
413 "[BUILD]/site_config/.known_devices" 395 "[BUILD]/site_config/.known_devices"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 701 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
720 "@@@STEP_LOG_END@python.inline@@@" 702 "@@@STEP_LOG_END@python.inline@@@"
721 ] 703 ]
722 }, 704 },
723 { 705 {
724 "name": "$result", 706 "name": "$result",
725 "recipe_result": null, 707 "recipe_result": null,
726 "status_code": 0 708 "status_code": 0
727 } 709 }
728 ] 710 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698