Index: /issm/trunk/cron/report.sh
===================================================================
--- /issm/trunk/cron/report.sh	(revision 1635)
+++ /issm/trunk/cron/report.sh	(revision 1636)
@@ -19,5 +19,11 @@
 	IS_INSTALL=1
 fi
-if [ `wc -l check.log | awk '{printf("%s",$1);}'`  = "0" ]
+if [ $(wc -l nightly.log | awk '{printf("%s",$1);}')  -eq 0 ] 
+then
+	IS_RUN=0
+else
+	IS_RUN=1
+fi
+if [ $(wc -l check.log | awk '{printf("%s",$1);}')  -eq 0 ] 
 then
 	IS_END=0
@@ -78,25 +84,37 @@
 	#installation successful. Did we go to the end?
 
-	if [ $(echo $IS_END) = 0 ];
-	then
-		echo "<td $TABLE_FONT>status: <span style=\"color:#FFA500\">stopped before the end</span></td>"
+	if [ $(echo $IS_RUN) -eq 0 ];
+	then
+		#run failed, end of report
+		echo "<td $TABLE_FONT>status: <span style=\"color:#FF0000\">installation successful but tests runs failed</span></td>"
+		echo "<td $TABLE_FONT>execution elapsed time: $ELAPSED_RUN</td>"
+		echo "</tr>"
+		echo "</table>"
+		rm check.log errors.log success.log tests.log
+
 	else
-		echo "<td $TABLE_FONT>status: <span style=\"color:#008000\">all test desks have been run</span></td>"
-	fi
-	echo "<td $TABLE_FONT>execution elapsed time: $ELAPSED_RUN</td>"
-	echo "</tr>"
-	echo "<tr>"
-	echo "<td $TABLE_FONT>number of errors: $(wc -l errors.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}';  rm errors.log)</td>"
-	echo "<td $TABLE_FONT>  </td>"
-	echo "</tr>"
-	echo "<tr>"
-	echo "<td $TABLE_FONT>number of success: $(wc -l success.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}';  rm success.log tests.log)</td>"
-	echo "<td $TABLE_FONT>  </td>"
-	echo "</tr>"
-	echo "</table>"
-
-	#draw a line and clean up
-	echo "<br><hr width=\"900px\">"
-	rm check.log
+
+		if [ $(echo $IS_END) -eq 0 ];
+		then
+			echo "<td $TABLE_FONT>status: <span style=\"color:#FFA500\">stopped before the end</span></td>"
+		else
+			echo "<td $TABLE_FONT>status: <span style=\"color:#008000\">all test desks have been run</span></td>"
+		fi
+		echo "<td $TABLE_FONT>execution elapsed time: $ELAPSED_RUN</td>"
+		echo "</tr>"
+		echo "<tr>"
+		echo "<td $TABLE_FONT>number of errors: $(wc -l errors.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}';  rm errors.log)</td>"
+		echo "<td $TABLE_FONT>  </td>"
+		echo "</tr>"
+		echo "<tr>"
+		echo "<td $TABLE_FONT>number of success: $(wc -l success.log | awk '{printf("%s",$1);}')/$(wc -l tests.log | awk '{printf("%s",$1);}';  rm success.log tests.log)</td>"
+		echo "<td $TABLE_FONT>  </td>"
+		echo "</tr>"
+		echo "</table>"
+
+		#draw a line and clean up
+		echo "<br><hr width=\"900px\">"
+		rm check.log
+	fi
 fi) 
 END
@@ -185,8 +203,13 @@
 
 #concatenate files
-if [ $(echo $IS_INSTALL) = 1 ];
-then
-	cat summary.html content.html footer.html > report.html
-	rm  summary.html content.html footer.html
+if [ $IS_INSTALL -eq 1 ];
+then
+	if [ $IS_END -eq 1 ];
+		cat summary.html content.html footer.html > report.html
+		rm  summary.html content.html footer.html
+	else
+		cat summary.html footer.html > report.html
+		rm  summary.html footer.html
+	fi
 else
 	cat summary.html footer.html > report.html
