From 2a8e5cce338b7f3b81d90df68853e8a120a867bd Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Tue, 24 Oct 2017 13:37:39 -0700 Subject: [PATCH] bootstat: test: check ro.boot.bootreason in some tests blind_reboot_test() did not report the ro.boot.bootreason value, making it more difficult to diagnose failures. Test: system/core/bootstat/boot_reason_test.sh cold warm hard Bug: 63736262 Change-Id: I313cfef202b1e06c583b0b47cd5d0e0888a7dbe7 --- bootstat/boot_reason_test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstat/boot_reason_test.sh b/bootstat/boot_reason_test.sh index ffe3dc7b3..af65135df 100755 --- a/bootstat/boot_reason_test.sh +++ b/bootstat/boot_reason_test.sh @@ -569,6 +569,8 @@ blind_reboot_test() { esac adb reboot ${TEST} wait_for_screen + bootloader_reason=`validate_property ro.boot.bootreason` + EXPECT_PROPERTY ro.boot.bootreason ${bootloader_reason} EXPECT_PROPERTY sys.boot.reason ${reason} EXPECT_PROPERTY persist.sys.boot.reason ${reason} report_bootstat_logs ${reason}