From b99e14d88ed055b1668dd63d3a86cb0a7fea16dd Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Wed, 27 Jun 2018 20:50:17 +0800 Subject: 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 --- automated/android/boottime/device-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'automated/android') 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) -- cgit v1.2.3