Skip to content
Snippets Groups Projects
Commit c749d404 authored by Dragoș-Iulian ARGINT's avatar Dragoș-Iulian ARGINT
Browse files

Change the output of so2_cm_checker_logger.sh


Signed-off-by: default avatarDragoș-Iulian ARGINT <dragosargint21@gmail.com>
parent 32a3cb52
No related branches found
No related tags found
No related merge requests found
Pipeline #61792 passed
...@@ -84,18 +84,24 @@ recover_grade_from_timeout() ...@@ -84,18 +84,24 @@ recover_grade_from_timeout()
fi fi
} }
timeout_exceeded() dmesg_log_dump()
{ {
local output=$1
pkill -SIGKILL qemu
echo ""
echo "TIMEOUT EXCEEDED !!! killing the process"
if [[ $DMESG_LOG != "" ]]; then if [[ $DMESG_LOG != "" ]]; then
echo "dumping DMESG_LOG=${DMESG_LOG} output" echo "dumping DMESG_LOG=${DMESG_LOG} output"
echo ">>>>---------------DMESG_LOG_STARTS_HERE------------------<<<<<" echo ">>>>---------------DMESG_LOG_STARTS_HERE------------------<<<<<"
cat $DMESG_LOG cat $DMESG_LOG
echo ">>>>----------------DMESG_LOG_ENDS_HERE-------------------<<<<<" echo ">>>>----------------DMESG_LOG_ENDS_HERE-------------------<<<<<"
fi fi
}
timeout_exceeded()
{
local output=$1
pkill -SIGKILL qemu
echo ""
echo "TIMEOUT EXCEEDED !!! killing the process"
dmesg_log_dump
if [[ $RECOVER_GRADE_TIMEOUT == 0 ]]; then if [[ $RECOVER_GRADE_TIMEOUT == 0 ]]; then
if [ -f $output ]; then if [ -f $output ]; then
......
...@@ -11,9 +11,7 @@ start() ...@@ -11,9 +11,7 @@ start()
while true while true
do do
sleep 1 sleep 1
echo ------------------START_HERE------------------ >> $LOG_FILE dmesg -c >> $LOG_FILE
dmesg >> $LOG_FILE
echo -------------------END_HERE------------------- >> $LOG_FILE
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment