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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/tester_with_step_warning.json

Issue 2122313002: Move known_devices file to ~/.android (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: with expectations 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 { 271 {
272 "cmd": [ 272 "cmd": [
273 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 273 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
274 "--adb-path", 274 "--adb-path",
275 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 275 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
276 "--blacklist-file", 276 "--blacklist-file",
277 "[SLAVE_BUILD]/src/out/bad_devices.json", 277 "[SLAVE_BUILD]/src/out/bad_devices.json",
278 "--json-output", 278 "--json-output",
279 "/path/to/tmp/json", 279 "/path/to/tmp/json",
280 "--known-devices-file", 280 "--known-devices-file",
281 "[CACHE]/known_android_devices" 281 "[HOME]/.android/known_devices.json"
282 ], 282 ],
283 "env": { 283 "env": {
284 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 284 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
285 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 285 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
286 }, 286 },
287 "name": "device_status_check", 287 "name": "device_status_check",
288 "~followup_annotations": [ 288 "~followup_annotations": [
289 "@@@STEP_TEXT@Online devices: 1@@@", 289 "@@@STEP_TEXT@Online devices: 1@@@",
290 "@@@STEP_LOG_LINE@json.output@[@@@", 290 "@@@STEP_LOG_LINE@json.output@[@@@",
291 "@@@STEP_LOG_LINE@json.output@ {@@@", 291 "@@@STEP_LOG_LINE@json.output@ {@@@",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 "-t", 394 "-t",
395 "Release" 395 "Release"
396 ], 396 ],
397 "env": { 397 "env": {
398 "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",
399 "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"
400 }, 400 },
401 "name": "provision_devices" 401 "name": "provision_devices"
402 }, 402 },
403 { 403 {
404 "cmd": [],
405 "name": "fix_device_file_format"
406 },
407 {
408 "cmd": [
409 "python",
410 "-u",
411 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
412 "[HOME]/.android/known_devices.json",
413 "/path/to/tmp/"
414 ],
415 "name": "fix_device_file_format.read_device_file",
416 "~followup_annotations": [
417 "@@@STEP_NEST_LEVEL@1@@@",
418 "@@@STEP_TEXT@file format is compatible@@@"
419 ]
420 },
421 {
404 "cmd": [ 422 "cmd": [
405 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 423 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
406 "--adb-path", 424 "--adb-path",
407 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 425 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
408 "--blacklist-file", 426 "--blacklist-file",
409 "[SLAVE_BUILD]/src/out/bad_devices.json", 427 "[SLAVE_BUILD]/src/out/bad_devices.json",
410 "--json-output", 428 "--json-output",
411 "/path/to/tmp/json", 429 "/path/to/tmp/json",
412 "--known-devices-file", 430 "--known-devices-file",
413 "[CACHE]/known_android_devices" 431 "[HOME]/.android/known_devices.json"
414 ], 432 ],
415 "env": { 433 "env": {
416 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 434 "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" 435 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
418 }, 436 },
419 "name": "device_status_check (2)", 437 "name": "device_status_check (2)",
420 "~followup_annotations": [ 438 "~followup_annotations": [
421 "@@@STEP_TEXT@Online devices: 1@@@", 439 "@@@STEP_TEXT@Online devices: 1@@@",
422 "@@@STEP_LOG_LINE@json.output@[@@@", 440 "@@@STEP_LOG_LINE@json.output@[@@@",
423 "@@@STEP_LOG_LINE@json.output@ {@@@", 441 "@@@STEP_LOG_LINE@json.output@ {@@@",
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 "step returned non-zero exit code: 88", 628 "step returned non-zero exit code: 88",
611 "@@@STEP_WARNINGS@@@" 629 "@@@STEP_WARNINGS@@@"
612 ] 630 ]
613 }, 631 },
614 { 632 {
615 "name": "$result", 633 "name": "$result",
616 "reason": "Warning: Step('unittests') returned 88", 634 "reason": "Warning: Step('unittests') returned 88",
617 "status_code": 88 635 "status_code": 88
618 } 636 }
619 ] 637 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698