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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/webview_cts_invalid_output.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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 "--adb-path", 262 "--adb-path",
263 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 263 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
264 ], 264 ],
265 "env": { 265 "env": {
266 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 266 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
267 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 267 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
268 }, 268 },
269 "name": "authorize_adb_devices" 269 "name": "authorize_adb_devices"
270 }, 270 },
271 { 271 {
272 "cmd": [],
273 "name": "fix_device_file_format"
274 },
275 {
276 "cmd": [
277 "python",
278 "-u",
279 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
280 "[BUILD]/site_config/.known_devices",
281 "/path/to/tmp/"
282 ],
283 "name": "fix_device_file_format.read_device_file",
284 "~followup_annotations": [
285 "@@@STEP_NEST_LEVEL@1@@@",
286 "@@@STEP_TEXT@file format is compatible@@@"
287 ]
288 },
289 {
290 "cmd": [ 272 "cmd": [
291 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 273 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
292 "--adb-path", 274 "--adb-path",
293 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 275 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
294 "--blacklist-file", 276 "--blacklist-file",
295 "[SLAVE_BUILD]/src/out/bad_devices.json", 277 "[SLAVE_BUILD]/src/out/bad_devices.json",
296 "--json-output", 278 "--json-output",
297 "/path/to/tmp/json", 279 "/path/to/tmp/json",
298 "--known-devices-file", 280 "--known-devices-file",
299 "[BUILD]/site_config/.known_devices" 281 "[BUILD]/site_config/.known_devices"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 "-t", 394 "-t",
413 "Release" 395 "Release"
414 ], 396 ],
415 "env": { 397 "env": {
416 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 398 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
417 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 399 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
418 }, 400 },
419 "name": "provision_devices" 401 "name": "provision_devices"
420 }, 402 },
421 { 403 {
422 "cmd": [],
423 "name": "fix_device_file_format (2)"
424 },
425 {
426 "cmd": [
427 "python",
428 "-u",
429 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
430 "[BUILD]/site_config/.known_devices",
431 "/path/to/tmp/"
432 ],
433 "name": "fix_device_file_format.read_device_file (2)",
434 "~followup_annotations": [
435 "@@@STEP_NEST_LEVEL@1@@@",
436 "@@@STEP_TEXT@file format is compatible@@@"
437 ]
438 },
439 {
440 "cmd": [ 404 "cmd": [
441 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 405 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
442 "--adb-path", 406 "--adb-path",
443 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 407 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
444 "--blacklist-file", 408 "--blacklist-file",
445 "[SLAVE_BUILD]/src/out/bad_devices.json", 409 "[SLAVE_BUILD]/src/out/bad_devices.json",
446 "--json-output", 410 "--json-output",
447 "/path/to/tmp/json", 411 "/path/to/tmp/json",
448 "--known-devices-file", 412 "--known-devices-file",
449 "[BUILD]/site_config/.known_devices" 413 "[BUILD]/site_config/.known_devices"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 "@@@STEP_LOG_LINE@disabled_tests@ }@@@", 770 "@@@STEP_LOG_LINE@disabled_tests@ }@@@",
807 "@@@STEP_LOG_END@disabled_tests@@@" 771 "@@@STEP_LOG_END@disabled_tests@@@"
808 ] 772 ]
809 }, 773 },
810 { 774 {
811 "name": "$result", 775 "name": "$result",
812 "reason": "Failed to parse the CTS output for the xml report file location", 776 "reason": "Failed to parse the CTS output for the xml report file location",
813 "status_code": 1 777 "status_code": 1
814 } 778 }
815 ] 779 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698