Skip to content
Snippets Groups Projects
Commit 3f67173d authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Truncated email message;

-Added Pieter to recipients.
parent 855c682d
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
# The result of the regression test will be sent to the user executing it # The result of the regression test will be sent to the user executing it
# . assuming this person works at ASTRON # . 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 # 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) ...@@ -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 LOGFILE=$HOME/modelsim_regression_test_vhdl_cron.log
SUBJECT_FULL=$(cat $LOGFILE | grep 'Email SUBJECT') SUBJECT_FULL=$(cat $LOGFILE | grep 'Email SUBJECT')
MESSAGE_FULL=$(cat $LOGFILE | grep 'Email MESSAGE') 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 # Create 3 strings we'll put in the email as subject and message
...@@ -54,7 +58,8 @@ SUBJECT=[REGTEST]${SUBJECT_FULL##*SUBJECT:} ...@@ -54,7 +58,8 @@ SUBJECT=[REGTEST]${SUBJECT_FULL##*SUBJECT:}
SUBJECT=$SUBJECT" - SVN revision ${SVN_REV}" SUBJECT=$SUBJECT" - SVN revision ${SVN_REV}"
# Grep non-duplicate error messages from the log file # 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 # Send the email by piping the final strings to the mail command
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment