Merge "bootstat: test: duration fixes"

am: 5126ce99de

Change-Id: I7ea58e8c3b292b39ccc3b9814303cd72683c1314
This commit is contained in:
Mark Salyzyn 2017-10-15 03:48:28 +00:00 committed by android-build-merger
commit b684bd4e6a

View file

@ -70,6 +70,8 @@ checkDebugBuild() {
false false
else else
echo "ERROR: '${TEST}' test requires userdebug build, skipping FAILURE" echo "ERROR: '${TEST}' test requires userdebug build, skipping FAILURE"
duration_prefix="~"
duration_estimate=1
false false
fi >&2 fi >&2
} }
@ -130,6 +132,8 @@ exitPstore() {
return ${save_ret} return ${save_ret}
fi fi
echo "ERROR: '${TEST}' test requires functional pstore, skipping FAILURE" echo "ERROR: '${TEST}' test requires functional pstore, skipping FAILURE"
duration_prefix="~"
duration_estimate=1
fi >&2 fi >&2
} }
@ -792,7 +796,7 @@ thermal shutdown test:
- adb shell getprop sys.boot.reason - adb shell getprop sys.boot.reason
- NB: should report shutdown,thermal" ] - NB: should report shutdown,thermal" ]
test_thermal_shutdown() { test_thermal_shutdown() {
durtion_test ">60" duration_test ">60"
echo " power on request" >&2 echo " power on request" >&2
adb shell setprop sys.powerctl shutdown,thermal adb shell setprop sys.powerctl shutdown,thermal
sleep 5 sleep 5