expect-lava/linux.inc: Fail-fast on kernel panic
Issue was seen with LTS 2.10 branch, apparently because wrong kernel command
line is passed. In any case, we want to detect this error fast and not
hang until timeout.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ib89948e0a0c9b1a9fa1eed8bf02b6b88f70a3562
(cherry picked from commit dc26c89ba4766ad092732cd90988e0817f0be349)
diff --git a/expect-lava/linux.inc b/expect-lava/linux.inc
index 9067a49..a7cced7 100644
--- a/expect-lava/linux.inc
+++ b/expect-lava/linux.inc
@@ -11,7 +11,8 @@
num_cpus=8
fi
-expect_string+=('i;Linux version')
+failures='Kernel panic'
+expect_string+=("i;Linux version;;${failures}")
failures='CPU[0-9]+: failed to come online'
expect_string+=("i;SMP: Total of ${num_cpus} processors activated;;${failures}")
expect_string+=('i;Freeing unused kernel memory')