Commit d425f8c3 authored by brugger's avatar brugger
Browse files

I modified the regression test suite to always send an e-mail when it
completes. In the case of a pass it sends a message indicating a pass
to the list of people that always recieve an e-mail when the test suite
is run. In the case of a fail it sends a message indicating a fail to
the list of people that always recieve an e-mail and those developers
that have modified the source since the last pass.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@11822 18c085ea-50e0-402c-830e-de6fd14e8384
parent c98574a5
......@@ -223,9 +223,11 @@ for m in \$modes; do
fi
done
# If the test suite failed send out an e-mail notifying the users.
# Send out an e-mail notifying the users of the test suite status.
cd ..
if test "\$hasFailed" != ""; then
if test "\$hasFailed" = ""; then
./visit-notify-test-failure -pass -host alastor
else
./visit-notify-test-failure -host alastor
fi
......
......@@ -7,22 +7,64 @@ testEmail=""
#
logRecipients="miller86@llnl.gov hankchilds@gmail.com jsmeredith@ornl.gov"
logRecipients="${logRecipients} ahern@ornl.gov brugger1@llnl.gov"
logRecipients="${logRecipients} harrison37@llnl.gov"
#
# Parse the command line to determine the host to run on.
#
host="alastor"
status="fail"
for abc
do
case $1 in
-fail)
status="fail"
shift
;;
-host)
host=$2
shift 2
;;
-pass)
status="pass"
shift
;;
esac
done
#
# If we have a pass, send out the pass e-mail and exit.
#
if test "$status" = "pass" ; then
#
# Create the list to send the e-mail to.
#
emailList=`echo $logRecipients | tr ' ' '\n' | sort | uniq`
#
# Create the email.
#
rm -rf mailmsg
cat > mailmsg << EOF
From: visit-developers@ornl.gov
Subject: The test suite run on $host passed
The test suite run on $host passed.
EOF
#
# Send the email.
#
if test -n "$testEmail"; then
cat mailmsg | /usr/sbin/sendmail $testEmail
else
cat mailmsg | /usr/sbin/sendmail $emailList
fi
rm -f mailmsg
exit 0
fi
#
# Check that we have a checkout of src data and test sitting in our directory.
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment