Index: infra/bots/recipes/swarm_test.expected/Test-Android-Clang-GalaxyS3-GPU-Mali400-arm-Debug-GN_Android.json |
diff --git a/infra/bots/recipes/swarm_test.expected/Test-Android-Clang-GalaxyS3-GPU-Mali400-arm-Debug-GN_Android.json b/infra/bots/recipes/swarm_test.expected/Test-Android-Clang-GalaxyS3-GPU-Mali400-arm-Debug-GN_Android.json |
index 1872936094f61922ea7f2c5d9cde9da2f96ac46b..9743ab7fc2a56e75a45dd2fb80dc7ce8bae4e130 100644 |
--- a/infra/bots/recipes/swarm_test.expected/Test-Android-Clang-GalaxyS3-GPU-Mali400-arm-Debug-GN_Android.json |
+++ b/infra/bots/recipes/swarm_test.expected/Test-Android-Clang-GalaxyS3-GPU-Mali400-arm-Debug-GN_Android.json |
@@ -565,12 +565,30 @@ |
}, |
{ |
"cmd": [ |
- "adb", |
- "logcat", |
- "-d" |
+ "python", |
+ "-u", |
+ "\nimport os\nimport subprocess\nimport sys\nout = sys.argv[1]\nlog = subprocess.check_output(['adb', 'logcat', '-d'])\nfor line in log.split('\\n'):\n tokens = 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_output(['addr2line', '-Cfpe', local, addr])\n line = line.replace(addr, addr + ' ' + sym.strip())\n print line\n", |
+ "[SLAVE_BUILD]/out/Debug" |
], |
- "cwd": "[SLAVE_BUILD]/skia", |
- "name": "dump log" |
+ "name": "dump log", |
+ "~followup_annotations": [ |
+ "@@@STEP_LOG_LINE@python.inline@@@@", |
+ "@@@STEP_LOG_LINE@python.inline@import os@@@", |
+ "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", |
+ "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
+ "@@@STEP_LOG_LINE@python.inline@out = sys.argv[1]@@@", |
+ "@@@STEP_LOG_LINE@python.inline@log = subprocess.check_output(['adb', 'logcat', '-d'])@@@", |
+ "@@@STEP_LOG_LINE@python.inline@for line in log.split('\\n'):@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ tokens = line.split()@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ addr, path = tokens[-2:]@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ local = os.path.join(out, os.path.basename(path))@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(local):@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ line = line.replace(addr, addr + ' ' + sym.strip())@@@", |
+ "@@@STEP_LOG_LINE@python.inline@ print line@@@", |
+ "@@@STEP_LOG_END@python.inline@@@" |
+ ] |
}, |
{ |
"cmd": [ |