OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "adb", | 4 "adb", |
5 "shell", | 5 "shell", |
6 "mkdir", | 6 "mkdir", |
7 "-p", | 7 "-p", |
8 "/sdcard/revenge_of_the_skiabot/resources" | 8 "/sdcard/revenge_of_the_skiabot/resources" |
9 ], | 9 ], |
10 "cwd": "[SLAVE_BUILD]/skia", | 10 "cwd": "[SLAVE_BUILD]/skia", |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 "adb", | 558 "adb", |
559 "pull", | 559 "pull", |
560 "/sdcard/revenge_of_the_skiabot/dm_out", | 560 "/sdcard/revenge_of_the_skiabot/dm_out", |
561 "[CUSTOM_[SWARM_OUT_DIR]]/dm" | 561 "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
562 ], | 562 ], |
563 "cwd": "[SLAVE_BUILD]/skia", | 563 "cwd": "[SLAVE_BUILD]/skia", |
564 "name": "pull /sdcard/revenge_of_the_skiabot/dm_out [CUSTOM_[SWARM_OUT_DIR]]
/dm" | 564 "name": "pull /sdcard/revenge_of_the_skiabot/dm_out [CUSTOM_[SWARM_OUT_DIR]]
/dm" |
565 }, | 565 }, |
566 { | 566 { |
567 "cmd": [ | 567 "cmd": [ |
568 "adb", | 568 "python", |
569 "logcat", | 569 "-u", |
570 "-d" | 570 "\nimport os\nimport subprocess\nimport sys\nout = sys.argv[1]\nlog = subp
rocess.check_output(['adb', 'logcat', '-d'])\nfor line in log.split('\\n'):\n t
okens = line.split()\n if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3
] == 'pc':\n addr, path = tokens[-2:]\n local = os.path.join(out, os.path.
basename(path))\n if os.path.exists(local):\n sym = subprocess.check_out
put(['addr2line', '-Cfpe', local, addr])\n line = line.replace(addr, addr +
' ' + sym.strip())\n print line\n", |
| 571 "[SLAVE_BUILD]/out/Release" |
571 ], | 572 ], |
572 "cwd": "[SLAVE_BUILD]/skia", | 573 "name": "dump log", |
573 "name": "dump log" | 574 "~followup_annotations": [ |
| 575 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 576 "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 577 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", |
| 578 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 579 "@@@STEP_LOG_LINE@python.inline@out = sys.argv[1]@@@", |
| 580 "@@@STEP_LOG_LINE@python.inline@log = subprocess.check_output(['adb', 'log
cat', '-d'])@@@", |
| 581 "@@@STEP_LOG_LINE@python.inline@for line in log.split('\\n'):@@@", |
| 582 "@@@STEP_LOG_LINE@python.inline@ tokens = line.split()@@@", |
| 583 "@@@STEP_LOG_LINE@python.inline@ if len(tokens) == 11 and tokens[-7] == '
F' and tokens[-3] == 'pc':@@@", |
| 584 "@@@STEP_LOG_LINE@python.inline@ addr, path = tokens[-2:]@@@", |
| 585 "@@@STEP_LOG_LINE@python.inline@ local = os.path.join(out, os.path.base
name(path))@@@", |
| 586 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(local):@@@", |
| 587 "@@@STEP_LOG_LINE@python.inline@ sym = subprocess.check_output(['addr
2line', '-Cfpe', local, addr])@@@", |
| 588 "@@@STEP_LOG_LINE@python.inline@ line = line.replace(addr, addr + ' '
+ sym.strip())@@@", |
| 589 "@@@STEP_LOG_LINE@python.inline@ print line@@@", |
| 590 "@@@STEP_LOG_END@python.inline@@@" |
| 591 ] |
574 }, | 592 }, |
575 { | 593 { |
576 "cmd": [ | 594 "cmd": [ |
577 "adb", | 595 "adb", |
578 "reboot" | 596 "reboot" |
579 ], | 597 ], |
580 "cwd": "[SLAVE_BUILD]/skia", | 598 "cwd": "[SLAVE_BUILD]/skia", |
581 "name": "reboot" | 599 "name": "reboot" |
582 }, | 600 }, |
583 { | 601 { |
584 "cmd": [ | 602 "cmd": [ |
585 "adb", | 603 "adb", |
586 "kill-server" | 604 "kill-server" |
587 ], | 605 ], |
588 "cwd": "[SLAVE_BUILD]/skia", | 606 "cwd": "[SLAVE_BUILD]/skia", |
589 "name": "kill adb server" | 607 "name": "kill adb server" |
590 }, | 608 }, |
591 { | 609 { |
592 "name": "$result", | 610 "name": "$result", |
593 "recipe_result": null, | 611 "recipe_result": null, |
594 "status_code": 0 | 612 "status_code": 0 |
595 } | 613 } |
596 ] | 614 ] |
OLD | NEW |