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

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

Powered by Google App Engine
This is Rietveld 408576698