-
Notifications
You must be signed in to change notification settings - Fork 64
/
get_crashreports.sh
executable file
·30 lines (25 loc) · 1.1 KB
/
get_crashreports.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#==========================================================================
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#==========================================================================
# Description:
# This is to get the crash reports of submitted/pending.
#
# Author: Askeing Yen, Naoki Hirata, Walter Chen,
#==========================================================================
set -e
if [ -f crashreports.txt ]
then
rm crashreports.txt
fi
echo "Getting root for device"
adb root
echo "Submitted crash reports" > crashreports.txt
adb shell ls -al /data/b2g/mozilla/Crash\ Reports/submitted >> crashreports.txt
echo "Pending crash reports" >> crashreports.txt
adb shell ls -al /data/b2g/mozilla/Crash\ Reports/pending >> crashreports.txt
cat crashreports.txt
echo -e "\n### The links of submitted crash reports:"
cat crashreports.txt | grep "bp-" | sed s/.*bp-/https:\\/\\/crash-stats\.mozilla\.com\\/report\\/index\\//g | sed s/\.txt//g