Changeset 12767
- Timestamp:
- 07/26/12 16:51:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/scripts/report.sh
r12159 r12767 56 56 fi 57 57 58 IS_TABLE=0 59 if [ $NUM_TOT -gt 1 ]; 60 then 61 if [ $NUM_SUC -ne $NUM_TOT ]; 62 then 63 IS_TABLE=1 64 fi 65 fi 66 58 67 #-------------------# 59 68 # build report.html # … … 96 105 97 106 #update status 98 if [ $IS_INSTALL -eq 1 ] 99 then 100 if [ $CRASH -eq 0 ] 107 echo $CRASH 108 if [ $IS_INSTALL -eq 1 ]; 109 then 110 if [ $CRASH -eq 0 ]; 101 111 then 102 112 cat summary.html | sed -e "s/STATUS/<span style=\"color:#008000\">all test desks have been run<\/span>/g" > summary2.html … … 110 120 111 121 #report table 112 if [ $IS_ INSTALL-eq 1 ];122 if [ $IS_TABLE -eq 1 ]; 113 123 then 114 124 cat << END > content.html … … 137 147 echo $line | awk -v FONTC="$FONTC" -v FONTL="$FONTL" ' 138 148 { printf("<td %s id=FAILURE>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n\n",FONTL,$1,FONTC,$3,FONTC,$6,FONTL,$9,FONTL,$11);} 139 140 141 149 '; 150 151 else 142 152 143 153 #SUCCESS … … 146 156 FONTC=$(echo "$BODY_FONTC bgcolor=#ddffdd") 147 157 FONTL=$(echo "$BODY_FONTL bgcolor=#ddffdd") 158 #do not write anything 148 159 #ERROR 149 160 else 150 161 FONTC=$(echo "$BODY_FONTC bgcolor=#ffdddd id=ERROR") 151 162 FONTL=$(echo "$BODY_FONTL bgcolor=#ffdddd") 163 echo $line | awk -v FONTC="$FONTC" -v FONTL="$FONTL" ' 164 { printf("<td %s>%s</td>\n<td %s>%s%s%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n\n",FONTL,$1,FONTL,$3,$4,$5,FONTC,$8,FONTL,$11,FONTL,$13);} 165 '; 152 166 fi 153 167 154 155 echo $line | awk -v FONTC="$FONTC" -v FONTL="$FONTL" '156 { printf("<td %s>%s</td>\n<td %s>%s%s%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n<td %s>%s</td>\n\n",FONTL,$1,FONTL,$3,$4,$5,FONTC,$8,FONTL,$11,FONTL,$13);}157 ';158 168 fi 159 169
Note:
See TracChangeset
for help on using the changeset viewer.