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

Side by Side Diff: scripts/slave/recipes/cronet.expected/cronet_try.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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 "--adb-path", 354 "--adb-path",
355 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 355 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
356 ], 356 ],
357 "env": { 357 "env": {
358 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 358 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
359 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 359 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
360 }, 360 },
361 "name": "authorize_adb_devices" 361 "name": "authorize_adb_devices"
362 }, 362 },
363 { 363 {
364 "cmd": [],
365 "name": "fix_device_file_format"
366 },
367 {
368 "cmd": [
369 "python",
370 "-u",
371 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
372 "[BUILD]/site_config/.known_devices",
373 "/path/to/tmp/"
374 ],
375 "name": "fix_device_file_format.read_device_file",
376 "~followup_annotations": [
377 "@@@STEP_NEST_LEVEL@1@@@",
378 "@@@STEP_TEXT@file format is compatible@@@"
379 ]
380 },
381 {
382 "cmd": [ 364 "cmd": [
383 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 365 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
384 "--adb-path", 366 "--adb-path",
385 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 367 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
386 "--blacklist-file", 368 "--blacklist-file",
387 "[SLAVE_BUILD]/src/out/bad_devices.json", 369 "[SLAVE_BUILD]/src/out/bad_devices.json",
388 "--json-output", 370 "--json-output",
389 "/path/to/tmp/json", 371 "/path/to/tmp/json",
390 "--known-devices-file", 372 "--known-devices-file",
391 "[BUILD]/site_config/.known_devices" 373 "[BUILD]/site_config/.known_devices"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 681 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
700 "@@@STEP_LOG_END@python.inline@@@" 682 "@@@STEP_LOG_END@python.inline@@@"
701 ] 683 ]
702 }, 684 },
703 { 685 {
704 "name": "$result", 686 "name": "$result",
705 "recipe_result": null, 687 "recipe_result": null,
706 "status_code": 0 688 "status_code": 0
707 } 689 }
708 ] 690 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698