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

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

Issue 1511403002: Revert "[Android] Add context manager to record logcat during step(s)." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: 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_dir" 281 "[SLAVE_BUILD]/src/out/logcat"
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 {
408 "cmd": [ 387 "cmd": [
409 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 388 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
410 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 389 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
411 "-v", 390 "-v",
412 "--blacklist-file", 391 "--blacklist-file",
413 "[SLAVE_BUILD]/src/out/bad_devices.json", 392 "[SLAVE_BUILD]/src/out/bad_devices.json",
414 "--release" 393 "--release"
415 ], 394 ],
416 "cwd": "[SLAVE_BUILD]", 395 "cwd": "[SLAVE_BUILD]",
417 "env": { 396 "env": {
418 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 397 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
419 }, 398 },
420 "name": "AndroidWebViewTest.install AndroidWebView.apk", 399 "name": "install AndroidWebView.apk"
421 "~followup_annotations": [
422 "@@@STEP_NEST_LEVEL@1@@@"
423 ]
424 }, 400 },
425 { 401 {
426 "cmd": [ 402 "cmd": [
427 "python", 403 "python",
428 "-u", 404 "-u",
429 "[SLAVE_BUILD]/src/build/android/test_runner.py", 405 "[SLAVE_BUILD]/src/build/android/test_runner.py",
430 "instrumentation", 406 "instrumentation",
431 "--test-apk", 407 "--test-apk",
432 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 408 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
433 "--blacklist-file", 409 "--blacklist-file",
434 "[SLAVE_BUILD]/src/out/bad_devices.json", 410 "[SLAVE_BUILD]/src/out/bad_devices.json",
435 "--apk-under-test", 411 "--apk-under-test",
436 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 412 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
437 "--isolate-file-path", 413 "--isolate-file-path",
438 "android_webview/android_webview_test_apk.isolate", 414 "android_webview/android_webview_test_apk.isolate",
439 "--flakiness-dashboard-server", 415 "--flakiness-dashboard-server",
440 "test-results.appspot.com", 416 "test-results.appspot.com",
441 "-A", 417 "-A",
442 "SmallTest", 418 "SmallTest",
443 "-E", 419 "-E",
444 "FlakyTest", 420 "FlakyTest",
445 "--screenshot", 421 "--screenshot",
446 "--release", 422 "--release",
447 "--host-driven-root", 423 "--host-driven-root",
448 "[SLAVE_BUILD]/src/chrome/test", 424 "[SLAVE_BUILD]/src/chrome/test",
449 "--official-build" 425 "--official-build"
450 ], 426 ],
451 "cwd": "[SLAVE_BUILD]", 427 "cwd": "[SLAVE_BUILD]",
452 "name": "AndroidWebViewTest.Instrumentation test SmallTest", 428 "name": "Instrumentation test SmallTest"
453 "~followup_annotations": [
454 "@@@STEP_NEST_LEVEL@1@@@"
455 ]
456 }, 429 },
457 { 430 {
458 "cmd": [ 431 "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": [
496 "python", 432 "python",
497 "-u", 433 "-u",
498 "[SLAVE_BUILD]/src/build/android/test_runner.py", 434 "[SLAVE_BUILD]/src/build/android/test_runner.py",
499 "gtest", 435 "gtest",
500 "-s", 436 "-s",
501 "unittests", 437 "unittests",
502 "--blacklist-file", 438 "--blacklist-file",
503 "[SLAVE_BUILD]/src/out/bad_devices.json", 439 "[SLAVE_BUILD]/src/out/bad_devices.json",
504 "--verbose", 440 "--verbose",
505 "--release", 441 "--release",
506 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 442 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
507 "--gtest_filter=WebRtc*", 443 "--gtest_filter=WebRtc*",
508 "--tool=asan" 444 "--tool=asan"
509 ], 445 ],
510 "cwd": "[SLAVE_BUILD]", 446 "cwd": "[SLAVE_BUILD]",
511 "env": { 447 "env": {
512 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 448 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
513 }, 449 },
514 "name": "unittests.unittests", 450 "name": "unittests"
515 "~followup_annotations": [
516 "@@@STEP_NEST_LEVEL@1@@@"
517 ]
518 }, 451 },
519 { 452 {
520 "cmd": [ 453 "cmd": [
521 "python", 454 "python",
522 "-u", 455 "-u",
523 "[BUILD]/scripts/slave/tee.py", 456 "[BUILD]/scripts/slave/tee.py",
524 "/path/to/tmp/logcat", 457 "[SLAVE_BUILD]/src/out/Release/full_log",
525 "--", 458 "--",
526 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 459 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
527 "[TMP_BASE]/logcat_tmp_2" 460 "[SLAVE_BUILD]/src/out/logcat"
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"
544 ], 461 ],
545 "cwd": "[SLAVE_BUILD]", 462 "cwd": "[SLAVE_BUILD]",
546 "name": "logcat_dump" 463 "name": "logcat_dump"
547 }, 464 },
548 { 465 {
549 "cmd": [ 466 "cmd": [
550 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 467 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
551 "--arch", 468 "--arch",
552 "arm", 469 "arm",
553 "--more-info", 470 "--more-info",
554 "[SLAVE_BUILD]/src/out/Release/full_logcat" 471 "[SLAVE_BUILD]/src/out/Release/full_log"
555 ], 472 ],
556 "cwd": "[SLAVE_BUILD]", 473 "cwd": "[SLAVE_BUILD]",
557 "env": { 474 "env": {
558 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 475 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
559 }, 476 },
560 "name": "stack_tool_with_logcat_dump" 477 "name": "stack_tool_with_logcat_dump"
561 }, 478 },
562 { 479 {
563 "cmd": [ 480 "cmd": [
564 "[SLAVE_BUILD]/src/build/android/tombstones.py", 481 "[SLAVE_BUILD]/src/build/android/tombstones.py",
565 "-a", 482 "-a",
566 "-s", 483 "-s",
567 "-w" 484 "-w"
568 ], 485 ],
569 "cwd": "[SLAVE_BUILD]", 486 "cwd": "[SLAVE_BUILD]",
570 "env": { 487 "env": {
571 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 488 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
572 }, 489 },
573 "name": "stack_tool_for_tombstones" 490 "name": "stack_tool_for_tombstones"
574 }, 491 },
575 { 492 {
576 "cmd": [ 493 "cmd": [
577 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 494 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
578 "-l", 495 "-l",
579 "[SLAVE_BUILD]/src/out/Release/full_logcat" 496 "[SLAVE_BUILD]/src/out/Release/full_log"
580 ], 497 ],
581 "cwd": "[SLAVE_BUILD]", 498 "cwd": "[SLAVE_BUILD]",
582 "env": { 499 "env": {
583 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 500 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
584 }, 501 },
585 "name": "stack_tool_for_asan" 502 "name": "stack_tool_for_asan"
586 }, 503 },
587 { 504 {
588 "name": "$result", 505 "name": "$result",
589 "reason": "Infra Failure: Step('device_status_check') returned 1", 506 "reason": "Infra Failure: Step('device_status_check') returned 1",
590 "status_code": 1 507 "status_code": 1
591 } 508 }
592 ] 509 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698