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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 "cmd": [ | 523 "cmd": [ |
524 "adb", | 524 "adb", |
525 "logcat", | 525 "logcat", |
526 "-c" | 526 "-c" |
527 ], | 527 ], |
528 "cwd": "[SLAVE_BUILD]/skia", | 528 "cwd": "[SLAVE_BUILD]/skia", |
529 "name": "clear log" | 529 "name": "clear log" |
530 }, | 530 }, |
531 { | 531 { |
532 "cmd": [ | 532 "cmd": [ |
533 "adb", | |
534 "shell", | |
535 "sh", | |
536 "/data/local/tmp/dm.sh" | |
537 ], | |
538 "cwd": "[SLAVE_BUILD]/skia", | |
539 "name": "dm" | |
540 }, | |
541 { | |
542 "cmd": [ | |
543 "adb", | |
544 "logcat", | |
545 "-d" | |
546 ], | |
547 "cwd": "[SLAVE_BUILD]/skia", | |
548 "name": "dump log " | |
549 }, | |
550 { | |
551 "cmd": [ | |
552 "python", | 533 "python", |
553 "-u", | 534 "-u", |
554 "\nimport subprocess\nimport sys\nsys.exit(int(subprocess.check_output(['a
db', 'shell', 'cat',\n '/data/local/tmp/rc'
])))\n" | 535 "\nimport subprocess\nimport sys\nbin_dir = sys.argv[1]\nsh = sys.arg
v[2]\nsubprocess.check_call(['adb', 'shell', 'sh', bin_dir + sh])\ntry:\n sys.e
xit(int(subprocess.check_output(['adb', 'shell', 'cat',\n
bin_dir + 'rc'])))\nexcept ValueError:\n print \"Couldn't read
the return code. Probably killed for OOM.\"\n sys.exit(1)\n", |
| 536 "/data/local/tmp/", |
| 537 "dm.sh" |
555 ], | 538 ], |
556 "name": "check dm rc", | 539 "name": "dm", |
557 "~followup_annotations": [ | 540 "~followup_annotations": [ |
558 "@@@STEP_LOG_LINE@python.inline@@@@", | 541 "@@@STEP_LOG_LINE@python.inline@@@@", |
559 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", | 542 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", |
560 "@@@STEP_LOG_LINE@python.inline@import sys@@@", | 543 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
561 "@@@STEP_LOG_LINE@python.inline@sys.exit(int(subprocess.check_output(['adb
', 'shell', 'cat',@@@", | 544 "@@@STEP_LOG_LINE@python.inline@bin_dir = sys.argv[1]@@@", |
562 "@@@STEP_LOG_LINE@python.inline@ '/da
ta/local/tmp/rc'])))@@@", | 545 "@@@STEP_LOG_LINE@python.inline@sh = sys.argv[2]@@@", |
| 546 "@@@STEP_LOG_LINE@python.inline@subprocess.check_call(['adb', 'shell', 'sh
', bin_dir + sh])@@@", |
| 547 "@@@STEP_LOG_LINE@python.inline@try:@@@", |
| 548 "@@@STEP_LOG_LINE@python.inline@ sys.exit(int(subprocess.check_output(['a
db', 'shell', 'cat',@@@", |
| 549 "@@@STEP_LOG_LINE@python.inline@ bi
n_dir + 'rc'])))@@@", |
| 550 "@@@STEP_LOG_LINE@python.inline@except ValueError:@@@", |
| 551 "@@@STEP_LOG_LINE@python.inline@ print \"Couldn't read the return code.
Probably killed for OOM.\"@@@", |
| 552 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
563 "@@@STEP_LOG_END@python.inline@@@" | 553 "@@@STEP_LOG_END@python.inline@@@" |
564 ] | 554 ] |
565 }, | 555 }, |
566 { | 556 { |
567 "cmd": [ | 557 "cmd": [ |
568 "adb", | 558 "adb", |
569 "pull", | 559 "pull", |
570 "/sdcard/revenge_of_the_skiabot/dm_out", | 560 "/sdcard/revenge_of_the_skiabot/dm_out", |
571 "[CUSTOM_[SWARM_OUT_DIR]]/dm" | 561 "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
572 ], | 562 ], |
573 "cwd": "[SLAVE_BUILD]/skia", | 563 "cwd": "[SLAVE_BUILD]/skia", |
574 "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" |
575 }, | 565 }, |
576 { | 566 { |
577 "cmd": [ | 567 "cmd": [ |
578 "adb", | 568 "adb", |
| 569 "logcat", |
| 570 "-d" |
| 571 ], |
| 572 "cwd": "[SLAVE_BUILD]/skia", |
| 573 "name": "dump log" |
| 574 }, |
| 575 { |
| 576 "cmd": [ |
| 577 "adb", |
579 "reboot" | 578 "reboot" |
580 ], | 579 ], |
581 "cwd": "[SLAVE_BUILD]/skia", | 580 "cwd": "[SLAVE_BUILD]/skia", |
582 "name": "reboot" | 581 "name": "reboot" |
583 }, | 582 }, |
584 { | 583 { |
585 "cmd": [ | 584 "cmd": [ |
586 "adb", | 585 "adb", |
587 "kill-server" | 586 "kill-server" |
588 ], | 587 ], |
589 "cwd": "[SLAVE_BUILD]/skia", | 588 "cwd": "[SLAVE_BUILD]/skia", |
590 "name": "kill adb server" | 589 "name": "kill adb server" |
591 }, | 590 }, |
592 { | 591 { |
593 "name": "$result", | 592 "name": "$result", |
594 "recipe_result": null, | 593 "recipe_result": null, |
595 "status_code": 0 | 594 "status_code": 0 |
596 } | 595 } |
597 ] | 596 ] |
OLD | NEW |