From 42f048a6c4eda2c8a12f0580de47374285341caa Mon Sep 17 00:00:00 2001 From: "sonja.mirtitsch%sun.com" Date: Thu, 15 Nov 2001 19:01:16 +0000 Subject: [PATCH] added sendmail, fixed sendmailbug --- security/nss/tests/qa_stage | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/security/nss/tests/qa_stage b/security/nss/tests/qa_stage index 9e957deed00..763a61720e0 100755 --- a/security/nss/tests/qa_stage +++ b/security/nss/tests/qa_stage @@ -17,6 +17,10 @@ if [ -z "$BUILDNUMBER" ] then BUILDNUMBER=1 fi +if [ `uname` = "Linux" ] ; then + PATH=".:/u/sonmi/bin:/u/sonmi/bin/linux:/usr/bsd:/usr/ucb/:/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/bin/X11:/usr/etc:/etc:/usr/demos:/usr/demos/bin:/usr/local/bin:/usr/local/X11/bin:/tools/ns/bin" + export PATH +fi Echo() { @@ -189,6 +193,7 @@ eval_opts() DO_CLEAN=OFF O_SILENT=OFF O_INCREMENTAL=OFF + O_MAIL=OFF BUILDDATE=`date +%m%d` NSSVER=tip @@ -200,6 +205,16 @@ eval_opts() -d) DO_DQA=ON ;; + -m) + O_MAIL=ON + shift + MAILINGLIST=$1 + if [ -z "$MAILINGLIST" ] + then + echo "Error: -m requires a mailinglist to follow, for example sonmi@iplanet.com" + exit + fi + ;; -ti) DO_TBX=ON match_tbxdirs 2 @@ -235,6 +250,9 @@ if [ "$DO_CLEAN" = "ON" ] ; then fi if [ "$DO_DQA" = "ON" ] ; then qa_stage_dqa + if [ "$O_MAIL" = "ON" ] ; then + cat $DQA_STAGE/result.html | /usr/sbin/sendmail $MAILINGLIST + fi fi if [ "$DO_TBX" = "ON" ] ; then qa_stage_tbx