From 3f67173d2fadf1f7529d17378f30bbfb69e67a4a Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Thu, 14 Dec 2017 09:50:18 +0000
Subject: [PATCH] -Truncated email message; -Added Pieter to recipients.

---
 .../oneclick/base/modelsim_regression_test_vhdl_mail.sh  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh b/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh
index 0231a4faa0..28f3b65fb6 100755
--- a/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh
+++ b/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh
@@ -30,7 +30,7 @@
 # The result of the regression test will be sent to the user executing it
 # . assuming this person works at ASTRON
 ###############################################################################
-RECIPIENTS="schuur@astron.nl kooistra@astron.nl hiemstra@astron.nl hargreaves@jive.eu"
+RECIPIENTS="schuur@astron.nl kooistra@astron.nl hiemstra@astron.nl hargreaves@jive.eu donker@astron.nl"
 
 ###############################################################################
 # Get the SVN revision to put in the email subject
@@ -43,6 +43,10 @@ SVN_REV=$(svn info $SVN | grep Revision | cut -d':' -f 2 | cut -d' ' -f 2)
 LOGFILE=$HOME/modelsim_regression_test_vhdl_cron.log
 SUBJECT_FULL=$(cat $LOGFILE | grep 'Email SUBJECT')
 MESSAGE_FULL=$(cat $LOGFILE | grep 'Email MESSAGE')
+MESSAGE_FULL="$MESSAGE_FULL\n\nImportant debugging info:"
+MESSAGE_FULL="$MESSAGE_FULL\n. Full log file: dop351:$LOGFILE"
+MESSAGE_FULL="$MESSAGE_FULL\n. Full error-grepped log file: dop351:/home/regtest/log_grepped"
+MESSAGE_FULL="$MESSAGE_FULL\n. Error-grepped log file is truncated to 200 lines below"
 
 ###############################################################################
 # Create 3 strings we'll put in the email as subject and message
@@ -54,7 +58,8 @@ SUBJECT=[REGTEST]${SUBJECT_FULL##*SUBJECT:}
 SUBJECT=$SUBJECT" - SVN revision ${SVN_REV}" 
 
 # Grep non-duplicate error messages from the log file
-LOG=$(cat $LOGFILE | grep Error -B 10)
+cat $LOGFILE | grep Error -B 10 | sort -u > /home/regtest/log_grepped
+LOG=$(head /home/regtest/log_grepped -n 200)
 
 ###############################################################################
 # Send the email by piping the final strings to the mail command
-- 
GitLab