From b21c34937c7ef7d07402edf2ca4c52fa6a1f1ce6 Mon Sep 17 00:00:00 2001
From: Luis Araujo <luis.araujo@collabora.co.uk>
Date: Tue, 6 Mar 2018 23:53:58 +0800
Subject: [PATCH] Check kernel booting messages

New LAVA version will check kernel messages to make sure the
kernel can start correctly.

This commit adds the kernel_start_message variable to the
job templates to test for any string as a valid kernel message
after the bootloader is properly matched.

Signed-off-by: Luis Araujo <luis.araujo@collabora.co.uk>
Reviewed-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Differential Revision: https://phabricator.apertis.org/D7638
---
 templates/common-boot-tpl.yaml      | 3 +++
 templates/common-qemu-boot-tpl.yaml | 1 +
 templates/minimal-boot-tpl.yaml     | 3 +++
 3 files changed, 7 insertions(+)

diff --git a/templates/common-boot-tpl.yaml b/templates/common-boot-tpl.yaml
index 382abc89..5baebf0f 100644
--- a/templates/common-boot-tpl.yaml
+++ b/templates/common-boot-tpl.yaml
@@ -16,6 +16,9 @@ timeouts:
   action:
     minutes: 120
 
+context:
+  kernel_start_message: '.*'
+
 metadata:
   source: https://git.apertis.org/git/apertis-tests.git
   image.version: '{{image_date}}'
diff --git a/templates/common-qemu-boot-tpl.yaml b/templates/common-qemu-boot-tpl.yaml
index d41c54d5..aa7064c3 100644
--- a/templates/common-qemu-boot-tpl.yaml
+++ b/templates/common-qemu-boot-tpl.yaml
@@ -11,6 +11,7 @@ timeouts:
 
 context:
   arch: {{arch}}
+  kernel_start_message: '.*'
 
 metadata:
   source: https://git.apertis.org/git/apertis-tests.git
diff --git a/templates/minimal-boot-tpl.yaml b/templates/minimal-boot-tpl.yaml
index 9dffa1bc..79e80a50 100644
--- a/templates/minimal-boot-tpl.yaml
+++ b/templates/minimal-boot-tpl.yaml
@@ -17,6 +17,9 @@ timeouts:
   action:
     minutes: 120
 
+context:
+  kernel_start_message: '.*'
+
 metadata:
   source: https://git.apertis.org/git/apertis-tests.git
   image.version: '{{image_date}}'
-- 
GitLab