summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2018-06-27 20:50:17 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2018-06-27 20:50:17 +0800
commitb99e14d88ed055b1668dd63d3a86cb0a7fea16dd (patch)
tree007dd61a3cf315a638dd70b4ec9febef4a562e73
parentc2abada6f067f67b045cca7cc671f97ab03ce035 (diff)
boottime/device-script.sh: specify -F when search "("
With AOSP master, it is changed to use pcre2grep to implement the grep command, and it has broken problem when search "(", where we need to specify the -F for "PATTERN is a set of newline-separated fixed strings" explicitly. And this -F option is supported by other grep version as well Change-Id: Ied891e58c93a6e92e80205ce61a798716451d4c4 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xautomated/android/boottime/device-script.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/android/boottime/device-script.sh b/automated/android/boottime/device-script.sh
index d2d74d7..00c7be9 100755
--- a/automated/android/boottime/device-script.sh
+++ b/automated/android/boottime/device-script.sh
@@ -346,7 +346,7 @@ getBootTimeInfoFromDmesg(){
## use the last one line, and report the case later after checked all the logs
SURFACEFLINGER_BOOT_TIME_INFO=$(grep "Boot is finished" "${LOG_LOGCAT_ALL}"|tail -n1)
if [ -n "${SURFACEFLINGER_BOOT_TIME_INFO}" ]; then
- while echo "${SURFACEFLINGER_BOOT_TIME_INFO}"|grep -q "("; do
+ while echo "${SURFACEFLINGER_BOOT_TIME_INFO}"|grep -q -F "("; do
SURFACEFLINGER_BOOT_TIME_INFO=$(echo "${SURFACEFLINGER_BOOT_TIME_INFO}"|cut -d\( -f2-)
done
SURFACEFLINGER_BOOT_TIME_MS=$(echo "${SURFACEFLINGER_BOOT_TIME_INFO}"|cut -d\ -f1)