summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-08-22 14:34:08 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-08-22 14:46:34 +0000
commit706092ca46da3f87ebd6ad70907ea24cbbd3b1ef (patch)
tree42efede84f4b6d3066ac60e89a1c970aebebe68e
parentb7538b53155391c52167d857673007a8bc4b8b17 (diff)
downloadtest-definitions-sched-706092ca46da3f87ebd6ad70907ea24cbbd3b1ef.tar.gz
android: FS mount time is measured from kernel init finished
Change-Id: I8319fe0007d71e86159b7a3ee25cf48fdcce69c7 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-xandroid/scripts/boot_time.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/scripts/boot_time.sh b/android/scripts/boot_time.sh
index 79dd85f..792347a 100755
--- a/android/scripts/boot_time.sh
+++ b/android/scripts/boot_time.sh
@@ -63,11 +63,16 @@ CONSOLE_SECONDS_END=$(getTime "Freeing unused kernel memory")
CONSOLE_SECONDS=`echo "$CONSOLE_SECONDS_END $CONSOLE_SECONDS_START - p" | dc`
output_test_result "KERNEL_BOOT_TIME" "pass" "${CONSOLE_SECONDS}" "s"
-POINT_FS_MOUNT_START=$(getTime "init: /dev/hw_random not found"|tail -n1)
+POINT_FS_MOUNT_START=$(getTime "Freeing unused kernel memory:"|tail -n1)
POINT_FS_MOUNT_END=$(getTime "init: Starting service 'logd'...")
FS_MOUNT_TIME=`echo "${POINT_FS_MOUNT_END} ${POINT_FS_MOUNT_START} - p" | dc`
output_test_result "FS_MOUNT_TIME" "pass" "${FS_MOUNT_TIME}" "s"
+POINT_FS_DURATION_START=$(getTime "init: /dev/hw_random not found"|tail -n1)
+POINT_FS_DURATION_END=$(getTime "init: Starting service 'logd'...")
+FS_MOUNT_DURATION=`echo "${POINT_FS_DURATION_END} ${POINT_FS_DURATION_START} - p" | dc`
+output_test_result "FS_MOUNT_DURATION" "pass" "${FS_MOUNT_DURATION}" "s"
+
POINT_SERVICE_BOOTANIM_START=$(getTime "init: Starting service \'bootanim\'...")
POINT_SERVICE_BOOTANIM_END=$(getTime "init: Service 'bootanim'.* exited with status")
BOOTANIM_TIME=`echo "${POINT_SERVICE_BOOTANIM_END} ${POINT_SERVICE_BOOTANIM_START} - p" | dc`