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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/tester_offline_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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 "--blacklist-file", 483 "--blacklist-file",
484 "[SLAVE_BUILD]/src/out/bad_devices.json" 484 "[SLAVE_BUILD]/src/out/bad_devices.json"
485 ], 485 ],
486 "cwd": "[SLAVE_BUILD]", 486 "cwd": "[SLAVE_BUILD]",
487 "env": { 487 "env": {
488 "BUILDTYPE": "Release" 488 "BUILDTYPE": "Release"
489 }, 489 },
490 "name": "Monkey Test" 490 "name": "Monkey Test"
491 }, 491 },
492 { 492 {
493 "cmd": [],
494 "cwd": "[SLAVE_BUILD]",
495 "name": "AndroidWebViewTest"
496 },
497 {
498 "cmd": [
499 "[BUILD]/scripts/slave/daemonizer.py",
500 "--",
501 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
502 "[TMP_BASE]/logcat_tmp_1"
503 ],
504 "cwd": "[SLAVE_BUILD]",
505 "env": {
506 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
507 },
508 "name": "AndroidWebViewTest.spawn_logcat_monitor",
509 "~followup_annotations": [
510 "@@@STEP_NEST_LEVEL@1@@@"
511 ]
512 },
513 {
493 "cmd": [ 514 "cmd": [
494 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 515 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
495 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 516 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
496 "-v", 517 "-v",
497 "--blacklist-file", 518 "--blacklist-file",
498 "[SLAVE_BUILD]/src/out/bad_devices.json", 519 "[SLAVE_BUILD]/src/out/bad_devices.json",
499 "--release" 520 "--release"
500 ], 521 ],
501 "cwd": "[SLAVE_BUILD]", 522 "cwd": "[SLAVE_BUILD]",
502 "env": { 523 "env": {
503 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 524 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
504 }, 525 },
505 "name": "install AndroidWebView.apk" 526 "name": "AndroidWebViewTest.install AndroidWebView.apk",
527 "~followup_annotations": [
528 "@@@STEP_NEST_LEVEL@1@@@"
529 ]
506 }, 530 },
507 { 531 {
508 "cmd": [ 532 "cmd": [
509 "python", 533 "python",
510 "-u", 534 "-u",
511 "[SLAVE_BUILD]/src/build/android/test_runner.py", 535 "[SLAVE_BUILD]/src/build/android/test_runner.py",
512 "instrumentation", 536 "instrumentation",
513 "--test-apk", 537 "--test-apk",
514 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 538 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
515 "--blacklist-file", 539 "--blacklist-file",
516 "[SLAVE_BUILD]/src/out/bad_devices.json", 540 "[SLAVE_BUILD]/src/out/bad_devices.json",
517 "--apk-under-test", 541 "--apk-under-test",
518 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 542 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
519 "--isolate-file-path", 543 "--isolate-file-path",
520 "android_webview/android_webview_test_apk.isolate", 544 "android_webview/android_webview_test_apk.isolate",
521 "--flakiness-dashboard-server", 545 "--flakiness-dashboard-server",
522 "test-results.appspot.com", 546 "test-results.appspot.com",
523 "-A", 547 "-A",
524 "SmallTest", 548 "SmallTest",
525 "-E", 549 "-E",
526 "FlakyTest", 550 "FlakyTest",
527 "--screenshot", 551 "--screenshot",
528 "--release", 552 "--release",
529 "--host-driven-root", 553 "--host-driven-root",
530 "[SLAVE_BUILD]/src/chrome/test", 554 "[SLAVE_BUILD]/src/chrome/test",
531 "--official-build" 555 "--official-build"
532 ], 556 ],
533 "cwd": "[SLAVE_BUILD]", 557 "cwd": "[SLAVE_BUILD]",
534 "name": "Instrumentation test SmallTest" 558 "name": "AndroidWebViewTest.Instrumentation test SmallTest",
559 "~followup_annotations": [
560 "@@@STEP_NEST_LEVEL@1@@@"
561 ]
535 }, 562 },
536 { 563 {
537 "cmd": [ 564 "cmd": [
565 "python",
566 "-u",
567 "[BUILD]/scripts/slave/tee.py",
568 "/path/to/tmp/logcat",
569 "--",
570 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
571 "[TMP_BASE]/logcat_tmp_1"
572 ],
573 "cwd": "[SLAVE_BUILD]",
574 "name": "AndroidWebViewTest.logcat_dump",
575 "~followup_annotations": [
576 "@@@STEP_NEST_LEVEL@1@@@"
577 ]
578 },
579 {
580 "cmd": [],
581 "cwd": "[SLAVE_BUILD]",
582 "name": "unittests"
583 },
584 {
585 "cmd": [
586 "[BUILD]/scripts/slave/daemonizer.py",
587 "--",
588 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
589 "[TMP_BASE]/logcat_tmp_2"
590 ],
591 "cwd": "[SLAVE_BUILD]",
592 "env": {
593 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
594 },
595 "name": "unittests.spawn_logcat_monitor",
596 "~followup_annotations": [
597 "@@@STEP_NEST_LEVEL@1@@@"
598 ]
599 },
600 {
601 "cmd": [
538 "python", 602 "python",
539 "-u", 603 "-u",
540 "[SLAVE_BUILD]/src/build/android/test_runner.py", 604 "[SLAVE_BUILD]/src/build/android/test_runner.py",
541 "gtest", 605 "gtest",
542 "-s", 606 "-s",
543 "unittests", 607 "unittests",
544 "--blacklist-file", 608 "--blacklist-file",
545 "[SLAVE_BUILD]/src/out/bad_devices.json", 609 "[SLAVE_BUILD]/src/out/bad_devices.json",
546 "--verbose", 610 "--verbose",
547 "--release", 611 "--release",
548 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 612 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
549 "--gtest_filter=WebRtc*", 613 "--gtest_filter=WebRtc*",
550 "--tool=asan" 614 "--tool=asan"
551 ], 615 ],
552 "cwd": "[SLAVE_BUILD]", 616 "cwd": "[SLAVE_BUILD]",
553 "env": { 617 "env": {
554 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 618 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
555 }, 619 },
556 "name": "unittests" 620 "name": "unittests.unittests",
621 "~followup_annotations": [
622 "@@@STEP_NEST_LEVEL@1@@@"
623 ]
557 }, 624 },
558 { 625 {
559 "cmd": [ 626 "cmd": [
627 "python",
628 "-u",
629 "[BUILD]/scripts/slave/tee.py",
630 "/path/to/tmp/logcat",
631 "--",
632 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
633 "[TMP_BASE]/logcat_tmp_2"
634 ],
635 "cwd": "[SLAVE_BUILD]",
636 "name": "unittests.logcat_dump",
637 "~followup_annotations": [
638 "@@@STEP_NEST_LEVEL@1@@@"
639 ]
640 },
641 {
642 "cmd": [
560 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py", 643 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py",
561 "-w", 644 "-w",
562 "[SLAVE_BUILD]" 645 "[SLAVE_BUILD]"
563 ], 646 ],
564 "cwd": "[SLAVE_BUILD]", 647 "cwd": "[SLAVE_BUILD]",
565 "name": "prepare bisect perf regression" 648 "name": "prepare bisect perf regression"
566 }, 649 },
567 { 650 {
568 "cmd": [ 651 "cmd": [
569 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py", 652 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py",
570 "-w", 653 "-w",
571 "[SLAVE_BUILD]", 654 "[SLAVE_BUILD]",
572 "--extra_src", 655 "--extra_src",
573 "test.py", 656 "test.py",
574 "--path_to_config", 657 "--path_to_config",
575 "test.py" 658 "test.py"
576 ], 659 ],
577 "cwd": "[SLAVE_BUILD]", 660 "cwd": "[SLAVE_BUILD]",
578 "name": "run bisect perf regression" 661 "name": "run bisect perf regression"
579 }, 662 },
580 { 663 {
581 "cmd": [ 664 "cmd": [
582 "python", 665 "python",
583 "-u", 666 "-u",
584 "[BUILD]/scripts/slave/tee.py", 667 "[BUILD]/scripts/slave/tee.py",
585 "[SLAVE_BUILD]/src/out/Release/full_log", 668 "[SLAVE_BUILD]/src/out/Release/full_logcat",
586 "--", 669 "--",
587 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 670 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
588 "[SLAVE_BUILD]/src/out/logcat" 671 "[SLAVE_BUILD]/src/out/logcat_dir"
589 ], 672 ],
590 "cwd": "[SLAVE_BUILD]", 673 "cwd": "[SLAVE_BUILD]",
591 "name": "logcat_dump" 674 "name": "logcat_dump"
592 }, 675 },
593 { 676 {
594 "cmd": [ 677 "cmd": [
595 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 678 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
596 "--arch", 679 "--arch",
597 "arm", 680 "arm",
598 "--more-info", 681 "--more-info",
599 "[SLAVE_BUILD]/src/out/Release/full_log" 682 "[SLAVE_BUILD]/src/out/Release/full_logcat"
600 ], 683 ],
601 "cwd": "[SLAVE_BUILD]", 684 "cwd": "[SLAVE_BUILD]",
602 "env": { 685 "env": {
603 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 686 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
604 }, 687 },
605 "name": "stack_tool_with_logcat_dump" 688 "name": "stack_tool_with_logcat_dump"
606 }, 689 },
607 { 690 {
608 "cmd": [ 691 "cmd": [
609 "[SLAVE_BUILD]/src/build/android/tombstones.py", 692 "[SLAVE_BUILD]/src/build/android/tombstones.py",
610 "-a", 693 "-a",
611 "-s", 694 "-s",
612 "-w" 695 "-w"
613 ], 696 ],
614 "cwd": "[SLAVE_BUILD]", 697 "cwd": "[SLAVE_BUILD]",
615 "env": { 698 "env": {
616 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 699 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
617 }, 700 },
618 "name": "stack_tool_for_tombstones" 701 "name": "stack_tool_for_tombstones"
619 }, 702 },
620 { 703 {
621 "cmd": [ 704 "cmd": [
622 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 705 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
623 "-l", 706 "-l",
624 "[SLAVE_BUILD]/src/out/Release/full_log" 707 "[SLAVE_BUILD]/src/out/Release/full_logcat"
625 ], 708 ],
626 "cwd": "[SLAVE_BUILD]", 709 "cwd": "[SLAVE_BUILD]",
627 "env": { 710 "env": {
628 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 711 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
629 }, 712 },
630 "name": "stack_tool_for_asan" 713 "name": "stack_tool_for_asan"
631 }, 714 },
632 { 715 {
633 "name": "$result", 716 "name": "$result",
634 "recipe_result": null, 717 "recipe_result": null,
635 "status_code": 0 718 "status_code": 0
636 } 719 }
637 ] 720 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698