summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-09-20 09:47:40 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-09-20 09:47:40 +0800
commitd1252c44b162db9ee597251f8dbcc3f7ec8904d5 (patch)
tree0a36805d55987f54d570cecdce315d657fe75034
parentdb3ebdbefd958e268e8f61a027bbf25cf45d07df (diff)
android/boottime/device-script.sh: output logfile when has failures
Change-Id: I01816529041ab2e647c918f2c88b05ce0ccb5d8a Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xautomated/android/boottime/device-script.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/automated/android/boottime/device-script.sh b/automated/android/boottime/device-script.sh
index 90e1736..eea7f3e 100755
--- a/automated/android/boottime/device-script.sh
+++ b/automated/android/boottime/device-script.sh
@@ -416,6 +416,10 @@ elif [ "X${OPERATION}" = "XANALYZE" ]; then
if [ "${android_boottime_lines}" -ne 1 ]; then
echo "There are ${android_boottime_lines} existences of 'Boot is finished' in file: ${LOG_LOGCAT_ALL}"
echo "Please check the status first"
+ echo "==============content of the file ${LOG_LOGCAT_ALL} start from here:"
+ cat ${LOG_LOGCAT_ALL}
+ echo "==============content of the file ${LOG_LOGCAT_ALL} end from here:"
+
service_started_once=false
fi
@@ -430,8 +434,11 @@ elif [ "X${OPERATION}" = "XANALYZE" ]; then
## check the service of bootanim
bootanim_lines=$(grep -c "init: Service 'bootanim'.* exited with status" "${LOG_DMESG}")
if [ "${bootanim_lines}" -ne 1 ]; then
- echo "bootanim service seems to be started more than once in file: ${LOG_DMESG}"
+ echo "bootanim service seems to be started ${bootanim_lines} times in file: ${LOG_DMESG}"
echo "Please check the status first"
+ echo "==============content of the file ${LOG_DMESG} start from here:"
+ cat ${LOG_DMESG}
+ echo "==============content of the file ${LOG_DMESG} end from here:"
service_started_once=false
fi
i=$((i+1))