From 244947e813d29eced295a0d9478c669503a855cc Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Fri, 13 Oct 2017 09:21:50 -0700 Subject: [PATCH] bootstat: test: duration fixes misspelled duration_test in test_thermal_shutdown Test: system/core/bootstat/boot_reason_test.sh Bug: 63736262 Change-Id: I5981fa899db84199aefb46c8741511e6889bc79c --- bootstat/boot_reason_test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstat/boot_reason_test.sh b/bootstat/boot_reason_test.sh index 7a45e4dc3..209e81b4c 100755 --- a/bootstat/boot_reason_test.sh +++ b/bootstat/boot_reason_test.sh @@ -70,6 +70,8 @@ checkDebugBuild() { false else echo "ERROR: '${TEST}' test requires userdebug build, skipping FAILURE" + duration_prefix="~" + duration_estimate=1 false fi >&2 } @@ -130,6 +132,8 @@ exitPstore() { return ${save_ret} fi echo "ERROR: '${TEST}' test requires functional pstore, skipping FAILURE" + duration_prefix="~" + duration_estimate=1 fi >&2 } @@ -792,7 +796,7 @@ thermal shutdown test: - adb shell getprop sys.boot.reason - NB: should report shutdown,thermal" ] test_thermal_shutdown() { - durtion_test ">60" + duration_test ">60" echo " power on request" >&2 adb shell setprop sys.powerctl shutdown,thermal sleep 5