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