[PVFS2-CVS]
commit by pcarns in pvfs2/test/automated: SUBMIT.pbs.template
CVS commit program
cvs at parl.clemson.edu
Tue Mar 23 12:41:58 EST 2004
Update of /projects/cvsroot/pvfs2/test/automated
In directory parlweb:/tmp/cvs-serv5625
Modified Files:
SUBMIT.pbs.template
Log Message:
at least send a trivial error message if pvfs2test.py fails before any
individual tests are executed
Index: SUBMIT.pbs.template
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/automated/SUBMIT.pbs.template,v
diff -p -u -r1.3 -r1.4
--- SUBMIT.pbs.template 23 Mar 2004 17:03:08 -0000 1.3
+++ SUBMIT.pbs.template 23 Mar 2004 17:41:58 -0000 1.4
@@ -22,11 +22,15 @@ NODEFILE="nodes.conf"
cat $PBS_NODEFILE>/home/USER/testing/DATE/work/$NODEFILE
cd $PBS_O_WORKDIR
+email=`grep EMAIL $CONFIGFILE | cut -d "=" -f 2`
mpdboot --rsh=rsh --file=$HOME/nightly/nodes.conf
-# TODO: send email if this doesn't work too!
+# run test harness, send email if it returns an error code
./pvfs2tests.py $CONFIGFILE $PAVCONFIG /home/USER/testing/DATE/work/$NODEFILE
+if [ $? != 0 ] ; then
+ echo "pvfs2tests.py failure." | mail -s "PVFS2 test: FAIL" "$email"
+fi
mpdallexit
More information about the PVFS2-CVS
mailing list