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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/restart_usb_builder_basic.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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 "--adb-path", 281 "--adb-path",
282 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 282 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
283 ], 283 ],
284 "env": { 284 "env": {
285 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 285 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
286 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 286 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
287 }, 287 },
288 "name": "authorize_adb_devices" 288 "name": "authorize_adb_devices"
289 }, 289 },
290 { 290 {
291 "cmd": [],
292 "name": "fix_device_file_format"
293 },
294 {
295 "cmd": [
296 "python",
297 "-u",
298 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
299 "[BUILD]/site_config/.known_devices",
300 "/path/to/tmp/"
301 ],
302 "name": "fix_device_file_format.read_device_file",
303 "~followup_annotations": [
304 "@@@STEP_NEST_LEVEL@1@@@",
305 "@@@STEP_TEXT@file format is compatible@@@"
306 ]
307 },
308 {
309 "cmd": [ 291 "cmd": [
310 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 292 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
311 "--adb-path", 293 "--adb-path",
312 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 294 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
313 "--blacklist-file", 295 "--blacklist-file",
314 "[SLAVE_BUILD]/src/out/bad_devices.json", 296 "[SLAVE_BUILD]/src/out/bad_devices.json",
315 "--json-output", 297 "--json-output",
316 "/path/to/tmp/json", 298 "/path/to/tmp/json",
317 "--known-devices-file", 299 "--known-devices-file",
318 "[BUILD]/site_config/.known_devices" 300 "[BUILD]/site_config/.known_devices"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 "-t", 413 "-t",
432 "Release" 414 "Release"
433 ], 415 ],
434 "env": { 416 "env": {
435 "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",
436 "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"
437 }, 419 },
438 "name": "provision_devices" 420 "name": "provision_devices"
439 }, 421 },
440 { 422 {
441 "cmd": [],
442 "name": "fix_device_file_format (2)"
443 },
444 {
445 "cmd": [
446 "python",
447 "-u",
448 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
449 "[BUILD]/site_config/.known_devices",
450 "/path/to/tmp/"
451 ],
452 "name": "fix_device_file_format.read_device_file (2)",
453 "~followup_annotations": [
454 "@@@STEP_NEST_LEVEL@1@@@",
455 "@@@STEP_TEXT@file format is compatible@@@"
456 ]
457 },
458 {
459 "cmd": [ 423 "cmd": [
460 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 424 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
461 "--adb-path", 425 "--adb-path",
462 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 426 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
463 "--blacklist-file", 427 "--blacklist-file",
464 "[SLAVE_BUILD]/src/out/bad_devices.json", 428 "[SLAVE_BUILD]/src/out/bad_devices.json",
465 "--json-output", 429 "--json-output",
466 "/path/to/tmp/json", 430 "/path/to/tmp/json",
467 "--known-devices-file", 431 "--known-devices-file",
468 "[BUILD]/site_config/.known_devices", 432 "[BUILD]/site_config/.known_devices",
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 710 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
747 }, 711 },
748 "name": "stack_tool_for_asan" 712 "name": "stack_tool_for_asan"
749 }, 713 },
750 { 714 {
751 "name": "$result", 715 "name": "$result",
752 "recipe_result": null, 716 "recipe_result": null,
753 "status_code": 0 717 "status_code": 0
754 } 718 }
755 ] 719 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698