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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/specific_install_tester_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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "--adb-path", 291 "--adb-path",
292 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 292 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
293 ], 293 ],
294 "env": { 294 "env": {
295 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 295 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
296 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 296 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
297 }, 297 },
298 "name": "authorize_adb_devices" 298 "name": "authorize_adb_devices"
299 }, 299 },
300 { 300 {
301 "cmd": [],
302 "name": "fix_device_file_format"
303 },
304 {
305 "cmd": [
306 "python",
307 "-u",
308 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
309 "[BUILD]/site_config/.known_devices",
310 "/path/to/tmp/"
311 ],
312 "name": "fix_device_file_format.read_device_file",
313 "~followup_annotations": [
314 "@@@STEP_NEST_LEVEL@1@@@",
315 "@@@STEP_TEXT@file format is compatible@@@"
316 ]
317 },
318 {
319 "cmd": [ 301 "cmd": [
320 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 302 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
321 "--adb-path", 303 "--adb-path",
322 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 304 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
323 "--blacklist-file", 305 "--blacklist-file",
324 "[SLAVE_BUILD]/src/out/bad_devices.json", 306 "[SLAVE_BUILD]/src/out/bad_devices.json",
325 "--json-output", 307 "--json-output",
326 "/path/to/tmp/json", 308 "/path/to/tmp/json",
327 "--known-devices-file", 309 "--known-devices-file",
328 "[BUILD]/site_config/.known_devices" 310 "[BUILD]/site_config/.known_devices"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 "-t", 423 "-t",
442 "Release" 424 "Release"
443 ], 425 ],
444 "env": { 426 "env": {
445 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 427 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
446 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 428 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
447 }, 429 },
448 "name": "provision_devices" 430 "name": "provision_devices"
449 }, 431 },
450 { 432 {
451 "cmd": [],
452 "name": "fix_device_file_format (2)"
453 },
454 {
455 "cmd": [
456 "python",
457 "-u",
458 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
459 "[BUILD]/site_config/.known_devices",
460 "/path/to/tmp/"
461 ],
462 "name": "fix_device_file_format.read_device_file (2)",
463 "~followup_annotations": [
464 "@@@STEP_NEST_LEVEL@1@@@",
465 "@@@STEP_TEXT@file format is compatible@@@"
466 ]
467 },
468 {
469 "cmd": [ 433 "cmd": [
470 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 434 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
471 "--adb-path", 435 "--adb-path",
472 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 436 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
473 "--blacklist-file", 437 "--blacklist-file",
474 "[SLAVE_BUILD]/src/out/bad_devices.json", 438 "[SLAVE_BUILD]/src/out/bad_devices.json",
475 "--json-output", 439 "--json-output",
476 "/path/to/tmp/json", 440 "/path/to/tmp/json",
477 "--known-devices-file", 441 "--known-devices-file",
478 "[BUILD]/site_config/.known_devices" 442 "[BUILD]/site_config/.known_devices"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 719 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
756 }, 720 },
757 "name": "stack_tool_for_asan" 721 "name": "stack_tool_for_asan"
758 }, 722 },
759 { 723 {
760 "name": "$result", 724 "name": "$result",
761 "recipe_result": null, 725 "recipe_result": null,
762 "status_code": 0 726 "status_code": 0
763 } 727 }
764 ] 728 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698