From 1103af841327f14a56e0fcca291e94ef58a45b34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Drago=C8=99-Iulian=20ARGINT?= <dragosargint21@gmail.com>
Date: Mon, 15 Apr 2024 23:35:05 +0300
Subject: [PATCH] Make checker.sh dump SO2_VM_LOG in case of timeout
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Dragoș-Iulian ARGINT <dragosargint21@gmail.com>
---
 checker/checker.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/checker/checker.sh b/checker/checker.sh
index 424e3dc..766abb9 100755
--- a/checker/checker.sh
+++ b/checker/checker.sh
@@ -83,6 +83,11 @@ timeout_exceeded()
 	pkill -SIGKILL qemu
 	echo ""
 	echo "TIMEOUT EXCEEDED !!! killing the process"
+	echo "dumping SO2_VM_LOG=${SO2_VM_LOG} output"
+	echo "------------------------------------------------------"
+	cat $SO2_VM_LOG
+	echo "------------------------------------------------------"
+
 	if [[ $RECOVER_GRADE_TIMEOUT == 0 ]]; then
 		if [ -f $output ]; then
 			echo "$output not available"
-- 
GitLab