diff --git a/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh b/tools/oneclick/base/modelsim_regression_test_vhdl_mail.sh index 0231a4faa0eddbcab8589cde7eb6e7fa0605bc86..28f3b65fb65c5ff4c9700479039627fef2031960 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