Index: /issm/trunk-jpl/jenkins/jenkins.sh
===================================================================
--- /issm/trunk-jpl/jenkins/jenkins.sh	(revision 16625)
+++ /issm/trunk-jpl/jenkins/jenkins.sh	(revision 16626)
@@ -308,9 +308,14 @@
 juLogClean
 
-rm -rf juLogFile && cat matlab_log.log | grep "test id" > juLogFile
-
-while read i; do 
-	juLog  -name=Error -error=ERROR echo $i 
-	juLog  -name=Failure -error=FAILURE   echo $i 
-done < juLogFile
-#}}}
+#number tests:
+numtests=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | wc -l`
+testlist=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g'  | sed 's/-//g'`
+
+#look through numtests:
+for i in `echo $testlist`
+do
+	test=`awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log`
+	juLog  -name=Error -error=ERROR echo $test
+	juLog  -name=Failure -error=FAILURE  echo $test
+done
+#}}}
