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

Side by Side Diff: scripts/slave/recipe_modules/cronet/example.expected/gn_test.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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 "--adb-path", 380 "--adb-path",
381 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 381 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
382 ], 382 ],
383 "env": { 383 "env": {
384 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 384 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
385 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 385 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
386 }, 386 },
387 "name": "authorize_adb_devices" 387 "name": "authorize_adb_devices"
388 }, 388 },
389 { 389 {
390 "cmd": [],
391 "name": "fix_device_file_format"
392 },
393 {
394 "cmd": [
395 "python",
396 "-u",
397 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
398 "[BUILD]/site_config/.known_devices",
399 "/path/to/tmp/"
400 ],
401 "name": "fix_device_file_format.read_device_file",
402 "~followup_annotations": [
403 "@@@STEP_NEST_LEVEL@1@@@",
404 "@@@STEP_TEXT@file format is compatible@@@"
405 ]
406 },
407 {
408 "cmd": [ 390 "cmd": [
409 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 391 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
410 "--adb-path", 392 "--adb-path",
411 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 393 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
412 "--blacklist-file", 394 "--blacklist-file",
413 "[SLAVE_BUILD]/src/out/bad_devices.json", 395 "[SLAVE_BUILD]/src/out/bad_devices.json",
414 "--json-output", 396 "--json-output",
415 "/path/to/tmp/json", 397 "/path/to/tmp/json",
416 "--known-devices-file", 398 "--known-devices-file",
417 "[BUILD]/site_config/.known_devices" 399 "[BUILD]/site_config/.known_devices"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 705 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
724 "@@@STEP_LOG_END@python.inline@@@" 706 "@@@STEP_LOG_END@python.inline@@@"
725 ] 707 ]
726 }, 708 },
727 { 709 {
728 "name": "$result", 710 "name": "$result",
729 "recipe_result": null, 711 "recipe_result": null,
730 "status_code": 0 712 "status_code": 0
731 } 713 }
732 ] 714 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698