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/tester_basic.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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 "--blacklist-file", 565 "--blacklist-file",
566 "[SLAVE_BUILD]/src/out/bad_devices.json" 566 "[SLAVE_BUILD]/src/out/bad_devices.json"
567 ], 567 ],
568 "cwd": "[SLAVE_BUILD]", 568 "cwd": "[SLAVE_BUILD]",
569 "env": { 569 "env": {
570 "BUILDTYPE": "Release" 570 "BUILDTYPE": "Release"
571 }, 571 },
572 "name": "Monkey Test" 572 "name": "Monkey Test"
573 }, 573 },
574 { 574 {
575 "cmd": [],
576 "cwd": "[SLAVE_BUILD]",
577 "name": "AndroidWebViewTest"
578 },
579 {
580 "cmd": [
581 "[BUILD]/scripts/slave/daemonizer.py",
582 "--",
583 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
584 "[TMP_BASE]/logcat_tmp_1"
585 ],
586 "cwd": "[SLAVE_BUILD]",
587 "env": {
588 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
589 },
590 "name": "AndroidWebViewTest.spawn_logcat_monitor",
591 "~followup_annotations": [
592 "@@@STEP_NEST_LEVEL@1@@@"
593 ]
594 },
595 {
575 "cmd": [ 596 "cmd": [
576 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 597 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
577 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 598 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
578 "-v", 599 "-v",
579 "--blacklist-file", 600 "--blacklist-file",
580 "[SLAVE_BUILD]/src/out/bad_devices.json", 601 "[SLAVE_BUILD]/src/out/bad_devices.json",
581 "--release" 602 "--release"
582 ], 603 ],
583 "cwd": "[SLAVE_BUILD]", 604 "cwd": "[SLAVE_BUILD]",
584 "env": { 605 "env": {
585 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 606 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
586 }, 607 },
587 "name": "install AndroidWebView.apk" 608 "name": "AndroidWebViewTest.install AndroidWebView.apk",
609 "~followup_annotations": [
610 "@@@STEP_NEST_LEVEL@1@@@"
611 ]
588 }, 612 },
589 { 613 {
590 "cmd": [ 614 "cmd": [
591 "python", 615 "python",
592 "-u", 616 "-u",
593 "[SLAVE_BUILD]/src/build/android/test_runner.py", 617 "[SLAVE_BUILD]/src/build/android/test_runner.py",
594 "instrumentation", 618 "instrumentation",
595 "--test-apk", 619 "--test-apk",
596 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 620 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
597 "--blacklist-file", 621 "--blacklist-file",
598 "[SLAVE_BUILD]/src/out/bad_devices.json", 622 "[SLAVE_BUILD]/src/out/bad_devices.json",
599 "--apk-under-test", 623 "--apk-under-test",
600 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 624 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
601 "--isolate-file-path", 625 "--isolate-file-path",
602 "android_webview/android_webview_test_apk.isolate", 626 "android_webview/android_webview_test_apk.isolate",
603 "--flakiness-dashboard-server", 627 "--flakiness-dashboard-server",
604 "test-results.appspot.com", 628 "test-results.appspot.com",
605 "-A", 629 "-A",
606 "SmallTest", 630 "SmallTest",
607 "-E", 631 "-E",
608 "FlakyTest", 632 "FlakyTest",
609 "--screenshot", 633 "--screenshot",
610 "--release", 634 "--release",
611 "--host-driven-root", 635 "--host-driven-root",
612 "[SLAVE_BUILD]/src/chrome/test", 636 "[SLAVE_BUILD]/src/chrome/test",
613 "--official-build" 637 "--official-build"
614 ], 638 ],
615 "cwd": "[SLAVE_BUILD]", 639 "cwd": "[SLAVE_BUILD]",
616 "name": "Instrumentation test SmallTest" 640 "name": "AndroidWebViewTest.Instrumentation test SmallTest",
641 "~followup_annotations": [
642 "@@@STEP_NEST_LEVEL@1@@@"
643 ]
617 }, 644 },
618 { 645 {
619 "cmd": [ 646 "cmd": [
647 "python",
648 "-u",
649 "[BUILD]/scripts/slave/tee.py",
650 "/path/to/tmp/logcat",
651 "--",
652 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
653 "[TMP_BASE]/logcat_tmp_1"
654 ],
655 "cwd": "[SLAVE_BUILD]",
656 "name": "AndroidWebViewTest.logcat_dump",
657 "~followup_annotations": [
658 "@@@STEP_NEST_LEVEL@1@@@"
659 ]
660 },
661 {
662 "cmd": [],
663 "cwd": "[SLAVE_BUILD]",
664 "name": "unittests"
665 },
666 {
667 "cmd": [
668 "[BUILD]/scripts/slave/daemonizer.py",
669 "--",
670 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
671 "[TMP_BASE]/logcat_tmp_2"
672 ],
673 "cwd": "[SLAVE_BUILD]",
674 "env": {
675 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
676 },
677 "name": "unittests.spawn_logcat_monitor",
678 "~followup_annotations": [
679 "@@@STEP_NEST_LEVEL@1@@@"
680 ]
681 },
682 {
683 "cmd": [
620 "python", 684 "python",
621 "-u", 685 "-u",
622 "[SLAVE_BUILD]/src/build/android/test_runner.py", 686 "[SLAVE_BUILD]/src/build/android/test_runner.py",
623 "gtest", 687 "gtest",
624 "-s", 688 "-s",
625 "unittests", 689 "unittests",
626 "--blacklist-file", 690 "--blacklist-file",
627 "[SLAVE_BUILD]/src/out/bad_devices.json", 691 "[SLAVE_BUILD]/src/out/bad_devices.json",
628 "--verbose", 692 "--verbose",
629 "--release", 693 "--release",
630 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 694 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
631 "--gtest_filter=WebRtc*", 695 "--gtest_filter=WebRtc*",
632 "--tool=asan" 696 "--tool=asan"
633 ], 697 ],
634 "cwd": "[SLAVE_BUILD]", 698 "cwd": "[SLAVE_BUILD]",
635 "env": { 699 "env": {
636 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 700 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
637 }, 701 },
638 "name": "unittests" 702 "name": "unittests.unittests",
703 "~followup_annotations": [
704 "@@@STEP_NEST_LEVEL@1@@@"
705 ]
639 }, 706 },
640 { 707 {
641 "cmd": [ 708 "cmd": [
709 "python",
710 "-u",
711 "[BUILD]/scripts/slave/tee.py",
712 "/path/to/tmp/logcat",
713 "--",
714 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
715 "[TMP_BASE]/logcat_tmp_2"
716 ],
717 "cwd": "[SLAVE_BUILD]",
718 "name": "unittests.logcat_dump",
719 "~followup_annotations": [
720 "@@@STEP_NEST_LEVEL@1@@@"
721 ]
722 },
723 {
724 "cmd": [
642 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py", 725 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py",
643 "-w", 726 "-w",
644 "[SLAVE_BUILD]" 727 "[SLAVE_BUILD]"
645 ], 728 ],
646 "cwd": "[SLAVE_BUILD]", 729 "cwd": "[SLAVE_BUILD]",
647 "name": "prepare bisect perf regression" 730 "name": "prepare bisect perf regression"
648 }, 731 },
649 { 732 {
650 "cmd": [ 733 "cmd": [
651 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py", 734 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py",
652 "-w", 735 "-w",
653 "[SLAVE_BUILD]", 736 "[SLAVE_BUILD]",
654 "--extra_src", 737 "--extra_src",
655 "test.py", 738 "test.py",
656 "--path_to_config", 739 "--path_to_config",
657 "test.py" 740 "test.py"
658 ], 741 ],
659 "cwd": "[SLAVE_BUILD]", 742 "cwd": "[SLAVE_BUILD]",
660 "name": "run bisect perf regression" 743 "name": "run bisect perf regression"
661 }, 744 },
662 { 745 {
663 "cmd": [ 746 "cmd": [
664 "python", 747 "python",
665 "-u", 748 "-u",
666 "[BUILD]/scripts/slave/tee.py", 749 "[BUILD]/scripts/slave/tee.py",
667 "[SLAVE_BUILD]/src/out/Release/full_log", 750 "[SLAVE_BUILD]/src/out/Release/full_logcat",
668 "--", 751 "--",
669 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 752 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
670 "[SLAVE_BUILD]/src/out/logcat" 753 "[SLAVE_BUILD]/src/out/logcat_dir"
671 ], 754 ],
672 "cwd": "[SLAVE_BUILD]", 755 "cwd": "[SLAVE_BUILD]",
673 "name": "logcat_dump" 756 "name": "logcat_dump"
674 }, 757 },
675 { 758 {
676 "cmd": [ 759 "cmd": [
677 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 760 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
678 "--arch", 761 "--arch",
679 "arm", 762 "arm",
680 "--more-info", 763 "--more-info",
681 "[SLAVE_BUILD]/src/out/Release/full_log" 764 "[SLAVE_BUILD]/src/out/Release/full_logcat"
682 ], 765 ],
683 "cwd": "[SLAVE_BUILD]", 766 "cwd": "[SLAVE_BUILD]",
684 "env": { 767 "env": {
685 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 768 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
686 }, 769 },
687 "name": "stack_tool_with_logcat_dump" 770 "name": "stack_tool_with_logcat_dump"
688 }, 771 },
689 { 772 {
690 "cmd": [ 773 "cmd": [
691 "[SLAVE_BUILD]/src/build/android/tombstones.py", 774 "[SLAVE_BUILD]/src/build/android/tombstones.py",
692 "-a", 775 "-a",
693 "-s", 776 "-s",
694 "-w" 777 "-w"
695 ], 778 ],
696 "cwd": "[SLAVE_BUILD]", 779 "cwd": "[SLAVE_BUILD]",
697 "env": { 780 "env": {
698 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 781 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
699 }, 782 },
700 "name": "stack_tool_for_tombstones" 783 "name": "stack_tool_for_tombstones"
701 }, 784 },
702 { 785 {
703 "cmd": [ 786 "cmd": [
704 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 787 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
705 "-l", 788 "-l",
706 "[SLAVE_BUILD]/src/out/Release/full_log" 789 "[SLAVE_BUILD]/src/out/Release/full_logcat"
707 ], 790 ],
708 "cwd": "[SLAVE_BUILD]", 791 "cwd": "[SLAVE_BUILD]",
709 "env": { 792 "env": {
710 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 793 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
711 }, 794 },
712 "name": "stack_tool_for_asan" 795 "name": "stack_tool_for_asan"
713 }, 796 },
714 { 797 {
715 "name": "$result", 798 "name": "$result",
716 "recipe_result": null, 799 "recipe_result": null,
717 "status_code": 0 800 "status_code": 0
718 } 801 }
719 ] 802 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698