Changeset 1568
- Timestamp:
- 08/05/09 09:46:30 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/report.sh
r1566 r1568 2 2 #generate html report from nightly.log output file 3 3 4 #Process log for errors4 #Process log 5 5 cat nightly.log | grep 'package: macayeal' | grep -v "not supported yet" > macayeal.log 6 6 cat nightly.log | grep 'package: ice' | grep -v "not supported yet" > ice.log … … 11 11 cat nightly.log | grep SUCCESS > success.log 12 12 cat errors.log success.log > tests.log 13 14 #create some variables 15 if [ `wc -l check.log | awk '{printf("%s",$1);}'` = "0" ] 16 then 17 IS_END=0 18 else 19 IS_END=1 20 fi 21 if [ `wc -l tests.log | awk '{printf("%s",$1);}'` = "0" ] 22 then 23 IS_INSTALL=0 24 else 25 IS_INSTALL=1 26 fi 27 13 28 14 29 #build report.html … … 81 96 date: $TODAY<br> 82 97 host: $HOST_NAME<br> 83 platform: $ISSM_ARCH<br>98 OS: $OS<br> 84 99 release: $ISSM_RELEASE<br> 85 100 total elapsed time: $ELAPSED_TOTAL<br> … … 87 102 runs elapsed time: $ELAPSED_RUN<br> 88 103 <br> 89 status: $(if [ `wc -l check.log | awk '{printf("%s",$1);}'` = "0"];104 status: $(if [ $IS_INSTALL==0 ]; 90 105 then 91 echo "<span style=\"color:#FF0000\">stopped before the end</span>" 106 #installation failed, end of report 107 echo "<span style=\"color:#FF0000\">installation failed</span>" 108 echo "<br>" 109 echo "<hr width=\"900px\">" 110 echo "</div>" 111 echo "<br>" 112 echo "<br>" 113 echo "<div class=\"issmfooter\"><a href=\"http://issm.jpl.nasa.gov\" title=\"ISSM website\" target=\"_blank\">ISSM</a> nightly run report</div>" 114 echo "</body>" 115 echo "</html>" 116 exit 1 92 117 else 93 echo "all test desks have been run" 118 if [ $IS_END==0 ]; 119 then 120 echo "<span style=\"color:#FF0000\">stopped before the end</span></div>" 121 else 122 echo "all test desks have been run" 123 fi 94 124 fi 95 125 rm check.log)
Note:
See TracChangeset
for help on using the changeset viewer.