Merge "bootstat: kernel_panic test w/o bootloader or pstore support"

This commit is contained in:
Treehugger Robot 2017-11-21 17:14:31 +00:00 committed by Gerrit Code Review
commit 70fda27eb2
1 changed files with 6 additions and 1 deletions

View File

@ -778,7 +778,12 @@ test_kernel_panic() {
checkDebugBuild || return
duration_test ">90"
panic_msg="kernel_panic,sysrq"
enterPstore || panic_msg="\(kernel_panic,sysrq\|kernel_panic\)"
enterPstore
if [ ${?} != 0 ]; then
echo " or functional bootloader" >&2
panic_msg="\(kernel_panic,sysrq\|kernel_panic\)"
pstore_ok=true
fi
echo c | adb shell su root tee /proc/sysrq-trigger >/dev/null
wait_for_screen
EXPECT_PROPERTY sys.boot.reason ${panic_msg}