summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2018-03-12 14:26:18 -0700
committer Alex Light <allight@google.com> 2018-03-13 13:23:36 -0700
commit4bfca1cc7bf6c213b546ee20a6f2e131fca4831c (patch)
tree8ba9a7d882b9ccccc03081ad62004b08182a242f
parent6717e5fae190386273accaa638e42000fa46ffcb (diff)
Give symbolize-buildbot-crashes.sh the ability to read from a file.
symbolize-buildbot-crashes.sh would always read from adb logcat. Sometimes it is useful to read from a file though. This change lets the crash logs be given as the first argument. Test: manual Bug: 74429665 Change-Id: Idd09e8eb5117082c98860e98b9e8afa05fe83e77
-rwxr-xr-xtools/symbolize-buildbot-crashes.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/symbolize-buildbot-crashes.sh b/tools/symbolize-buildbot-crashes.sh
index 8dc4e27885..0200346fa0 100755
--- a/tools/symbolize-buildbot-crashes.sh
+++ b/tools/symbolize-buildbot-crashes.sh
@@ -17,7 +17,11 @@
# We push art and its dependencies to '/data/local/tmp', but the 'stack'
# script expect things to be in '/'. So we just remove the
# '/data/local/tmp' prefix.
-adb logcat -d | sed 's,/data/local/tmp,,g' | development/scripts/stack
+if [[ -n "$1" ]]; then
+ cat $1
+else
+ adb logcat -d
+fi | sed 's,/data/local/tmp,,g' | development/scripts/stack
# Always return 0 to avoid having the buildbot complain about wrong stacks.
exit 0