diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-12-08 17:53:26 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-12-09 09:07:34 +0000 |
commit | ebf996e25f0833bef90471826e7d291e7a289356 (patch) | |
tree | ded9aa68a8eb0dc2920c58f782f61363ace70a5a /android | |
parent | e1558f50f751ee1cbb087abf0b2057384c809bb4 (diff) |
android: boot time script fixed
Change-Id: I9ebb9e6ec1c1511473e8b9bf85ae23012b290e18
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'android')
-rwxr-xr-x | android/scripts/boot_time.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/scripts/boot_time.sh b/android/scripts/boot_time.sh index dd37af5..6298593 100755 --- a/android/scripts/boot_time.sh +++ b/android/scripts/boot_time.sh @@ -27,7 +27,7 @@ # to the moment rootfs is mounted. # The test requires dc to be available in rootfs -CONSOLE_SECONDS_START=`dmesg | awk '{print $2}' | awk '{FS="]"; print $1}' | grep -v "^0.0" | head -1` +CONSOLE_SECONDS_START=`dmesg | awk '{print $2}' | awk '{FS="]"; print $1}' | grep -v "^0.0" | head -n 1` CONSOLE_SECONDS_END=`dmesg | grep "Freeing unused kernel memory" | tail -n 1 | tr -s " " | cut -d [ -f 2 | cut -d ] -f 1` echo "$CONSOLE_SECONDS_END $CONSOLE_SECONDS_START - p" CONSOLE_SECONDS=`echo "$CONSOLE_SECONDS_END $CONSOLE_SECONDS_START - p" | dc` @@ -45,7 +45,7 @@ else echo "TEST ANDROID_BOOT_TIME: pass ${TIME_VALUE} ms" fi -SERVICE_START_TIME_INFO=$(dmesg |grep "healthd:"|head -n1) +SERVICE_START_TIME_INFO=$(dmesg |grep "healthd:"|head -n 1) SERVICE_START_TIME_END=$(echo "$SERVICE_START_TIME_INFO"|cut -d] -f 1|cut -d[ -f2| tr -d " ") if [ -z "${SERVICE_START_TIME_END}" ]; then echo "TEST ANDROID_SERVICE_START_TIME: fail -1 s" |