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

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

Issue 1465343002: [Android] Add context manager to record logcat during step(s). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Removed unused config. Created 5 years 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 | Annotate | Revision Log
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 "cwd": "[SLAVE_BUILD]", 9 "cwd": "[SLAVE_BUILD]",
10 "name": "cleanup index.lock", 10 "name": "cleanup index.lock",
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@", 271 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@",
272 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@", 272 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@",
273 "@@@STEP_LOG_END@python.inline@@@" 273 "@@@STEP_LOG_END@python.inline@@@"
274 ] 274 ]
275 }, 275 },
276 { 276 {
277 "cmd": [ 277 "cmd": [
278 "[BUILD]/scripts/slave/daemonizer.py", 278 "[BUILD]/scripts/slave/daemonizer.py",
279 "--", 279 "--",
280 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py", 280 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
281 "[SLAVE_BUILD]/src/out/logcat" 281 "[SLAVE_BUILD]/src/out/logcat_dir"
282 ], 282 ],
283 "cwd": "[SLAVE_BUILD]", 283 "cwd": "[SLAVE_BUILD]",
284 "env": { 284 "env": {
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": "spawn_logcat_monitor" 287 "name": "spawn_logcat_monitor"
288 }, 288 },
289 { 289 {
290 "cmd": [ 290 "cmd": [
291 "python", 291 "python",
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 "--blacklist-file", 377 "--blacklist-file",
378 "[SLAVE_BUILD]/src/out/bad_devices.json" 378 "[SLAVE_BUILD]/src/out/bad_devices.json"
379 ], 379 ],
380 "cwd": "[SLAVE_BUILD]", 380 "cwd": "[SLAVE_BUILD]",
381 "env": { 381 "env": {
382 "BUILDTYPE": "Release" 382 "BUILDTYPE": "Release"
383 }, 383 },
384 "name": "Monkey Test" 384 "name": "Monkey Test"
385 }, 385 },
386 { 386 {
387 "cmd": [],
388 "cwd": "[SLAVE_BUILD]",
389 "name": "AndroidWebViewTest"
390 },
391 {
392 "cmd": [
393 "[BUILD]/scripts/slave/daemonizer.py",
394 "--",
395 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
396 "[TMP_BASE]/logcat_tmp_1"
397 ],
398 "cwd": "[SLAVE_BUILD]",
399 "env": {
400 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
401 },
402 "name": "AndroidWebViewTest.spawn_logcat_monitor",
403 "~followup_annotations": [
404 "@@@STEP_NEST_LEVEL@1@@@"
405 ]
406 },
407 {
387 "cmd": [ 408 "cmd": [
388 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 409 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
389 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 410 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
390 "-v", 411 "-v",
391 "--blacklist-file", 412 "--blacklist-file",
392 "[SLAVE_BUILD]/src/out/bad_devices.json", 413 "[SLAVE_BUILD]/src/out/bad_devices.json",
393 "--release" 414 "--release"
394 ], 415 ],
395 "cwd": "[SLAVE_BUILD]", 416 "cwd": "[SLAVE_BUILD]",
396 "env": { 417 "env": {
397 "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"
398 }, 419 },
399 "name": "install AndroidWebView.apk" 420 "name": "AndroidWebViewTest.install AndroidWebView.apk",
421 "~followup_annotations": [
422 "@@@STEP_NEST_LEVEL@1@@@"
423 ]
400 }, 424 },
401 { 425 {
402 "cmd": [ 426 "cmd": [
403 "python", 427 "python",
404 "-u", 428 "-u",
405 "[SLAVE_BUILD]/src/build/android/test_runner.py", 429 "[SLAVE_BUILD]/src/build/android/test_runner.py",
406 "instrumentation", 430 "instrumentation",
407 "--test-apk", 431 "--test-apk",
408 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 432 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
409 "--blacklist-file", 433 "--blacklist-file",
410 "[SLAVE_BUILD]/src/out/bad_devices.json", 434 "[SLAVE_BUILD]/src/out/bad_devices.json",
411 "--apk-under-test", 435 "--apk-under-test",
412 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 436 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
413 "--isolate-file-path", 437 "--isolate-file-path",
414 "android_webview/android_webview_test_apk.isolate", 438 "android_webview/android_webview_test_apk.isolate",
415 "--flakiness-dashboard-server", 439 "--flakiness-dashboard-server",
416 "test-results.appspot.com", 440 "test-results.appspot.com",
417 "-A", 441 "-A",
418 "SmallTest", 442 "SmallTest",
419 "-E", 443 "-E",
420 "FlakyTest", 444 "FlakyTest",
421 "--screenshot", 445 "--screenshot",
422 "--release", 446 "--release",
423 "--host-driven-root", 447 "--host-driven-root",
424 "[SLAVE_BUILD]/src/chrome/test", 448 "[SLAVE_BUILD]/src/chrome/test",
425 "--official-build" 449 "--official-build"
426 ], 450 ],
427 "cwd": "[SLAVE_BUILD]", 451 "cwd": "[SLAVE_BUILD]",
428 "name": "Instrumentation test SmallTest" 452 "name": "AndroidWebViewTest.Instrumentation test SmallTest",
453 "~followup_annotations": [
454 "@@@STEP_NEST_LEVEL@1@@@"
455 ]
429 }, 456 },
430 { 457 {
431 "cmd": [ 458 "cmd": [
459 "python",
460 "-u",
461 "[BUILD]/scripts/slave/tee.py",
462 "/path/to/tmp/logcat",
463 "--",
464 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
465 "[TMP_BASE]/logcat_tmp_1"
466 ],
467 "cwd": "[SLAVE_BUILD]",
468 "name": "AndroidWebViewTest.logcat_dump",
469 "~followup_annotations": [
470 "@@@STEP_NEST_LEVEL@1@@@"
471 ]
472 },
473 {
474 "cmd": [],
475 "cwd": "[SLAVE_BUILD]",
476 "name": "unittests"
477 },
478 {
479 "cmd": [
480 "[BUILD]/scripts/slave/daemonizer.py",
481 "--",
482 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
483 "[TMP_BASE]/logcat_tmp_2"
484 ],
485 "cwd": "[SLAVE_BUILD]",
486 "env": {
487 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
488 },
489 "name": "unittests.spawn_logcat_monitor",
490 "~followup_annotations": [
491 "@@@STEP_NEST_LEVEL@1@@@"
492 ]
493 },
494 {
495 "cmd": [
432 "python", 496 "python",
433 "-u", 497 "-u",
434 "[SLAVE_BUILD]/src/build/android/test_runner.py", 498 "[SLAVE_BUILD]/src/build/android/test_runner.py",
435 "gtest", 499 "gtest",
436 "-s", 500 "-s",
437 "unittests", 501 "unittests",
438 "--blacklist-file", 502 "--blacklist-file",
439 "[SLAVE_BUILD]/src/out/bad_devices.json", 503 "[SLAVE_BUILD]/src/out/bad_devices.json",
440 "--verbose", 504 "--verbose",
441 "--release", 505 "--release",
442 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 506 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
443 "--gtest_filter=WebRtc*", 507 "--gtest_filter=WebRtc*",
444 "--tool=asan" 508 "--tool=asan"
445 ], 509 ],
446 "cwd": "[SLAVE_BUILD]", 510 "cwd": "[SLAVE_BUILD]",
447 "env": { 511 "env": {
448 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 512 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
449 }, 513 },
450 "name": "unittests" 514 "name": "unittests.unittests",
515 "~followup_annotations": [
516 "@@@STEP_NEST_LEVEL@1@@@"
517 ]
451 }, 518 },
452 { 519 {
453 "cmd": [ 520 "cmd": [
454 "python", 521 "python",
455 "-u", 522 "-u",
456 "[BUILD]/scripts/slave/tee.py", 523 "[BUILD]/scripts/slave/tee.py",
457 "[SLAVE_BUILD]/src/out/Release/full_log", 524 "/path/to/tmp/logcat",
458 "--", 525 "--",
459 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 526 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
460 "[SLAVE_BUILD]/src/out/logcat" 527 "[TMP_BASE]/logcat_tmp_2"
528 ],
529 "cwd": "[SLAVE_BUILD]",
530 "name": "unittests.logcat_dump",
531 "~followup_annotations": [
532 "@@@STEP_NEST_LEVEL@1@@@"
533 ]
534 },
535 {
536 "cmd": [
537 "python",
538 "-u",
539 "[BUILD]/scripts/slave/tee.py",
540 "[SLAVE_BUILD]/src/out/Release/full_logcat",
541 "--",
542 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
543 "[SLAVE_BUILD]/src/out/logcat_dir"
461 ], 544 ],
462 "cwd": "[SLAVE_BUILD]", 545 "cwd": "[SLAVE_BUILD]",
463 "name": "logcat_dump" 546 "name": "logcat_dump"
464 }, 547 },
465 { 548 {
466 "cmd": [ 549 "cmd": [
467 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 550 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
468 "--arch", 551 "--arch",
469 "arm", 552 "arm",
470 "--more-info", 553 "--more-info",
471 "[SLAVE_BUILD]/src/out/Release/full_log" 554 "[SLAVE_BUILD]/src/out/Release/full_logcat"
472 ], 555 ],
473 "cwd": "[SLAVE_BUILD]", 556 "cwd": "[SLAVE_BUILD]",
474 "env": { 557 "env": {
475 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 558 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
476 }, 559 },
477 "name": "stack_tool_with_logcat_dump" 560 "name": "stack_tool_with_logcat_dump"
478 }, 561 },
479 { 562 {
480 "cmd": [ 563 "cmd": [
481 "[SLAVE_BUILD]/src/build/android/tombstones.py", 564 "[SLAVE_BUILD]/src/build/android/tombstones.py",
482 "-a", 565 "-a",
483 "-s", 566 "-s",
484 "-w" 567 "-w"
485 ], 568 ],
486 "cwd": "[SLAVE_BUILD]", 569 "cwd": "[SLAVE_BUILD]",
487 "env": { 570 "env": {
488 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 571 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
489 }, 572 },
490 "name": "stack_tool_for_tombstones" 573 "name": "stack_tool_for_tombstones"
491 }, 574 },
492 { 575 {
493 "cmd": [ 576 "cmd": [
494 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 577 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
495 "-l", 578 "-l",
496 "[SLAVE_BUILD]/src/out/Release/full_log" 579 "[SLAVE_BUILD]/src/out/Release/full_logcat"
497 ], 580 ],
498 "cwd": "[SLAVE_BUILD]", 581 "cwd": "[SLAVE_BUILD]",
499 "env": { 582 "env": {
500 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 583 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
501 }, 584 },
502 "name": "stack_tool_for_asan" 585 "name": "stack_tool_for_asan"
503 }, 586 },
504 { 587 {
505 "name": "$result", 588 "name": "$result",
506 "reason": "Infra Failure: Step('device_status_check') returned 1", 589 "reason": "Infra Failure: Step('device_status_check') returned 1",
507 "status_code": 1 590 "status_code": 1
508 } 591 }
509 ] 592 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698