Changeset 8719


Ignore:
Timestamp:
06/24/11 14:51:01 (14 years ago)
Author:
Mathieu Morlighem
Message:

new report with link toward errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/scripts/report.sh

    r7712 r8719  
    8282</tr>
    8383<tr>
    84 <td $TABLE_FONT>number of errors: $NUM_ERR/$NUM_TOT
     84<td $TABLE_FONT>number of <a href="#ERROR">errors</a>: $NUM_ERR/$NUM_TOT
    8585
    8686<td $TABLE_FONT>installation elapsed time: $EL_INSTALL</td>
     
    135135                  FONTL=$(echo "$BODY_FONTL bgcolor=#ffff00");
    136136                  echo $line | awk -v FONTC="$FONTC" -v FONTL="$FONTL" '
    137                   { printf("<td %s>%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);}
     137                  { 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);}
    138138                          ';
    139139
     
    143143                  if [ "$STATUS" = "SUCCESS" ]
    144144                  then
    145                           color="bgcolor=#ddffdd";
    146 
     145                          FONTC=$(echo "$BODY_FONTC bgcolor=#ddffdd")
     146                          FONTL=$(echo "$BODY_FONTL bgcolor=#ddffdd")
    147147                  #ERROR
    148148                  else
    149                           color="bgcolor=#ffdddd";
     149                          FONTC=$(echo "$BODY_FONTC bgcolor=#ffdddd id=ERROR")
     150                          FONTL=$(echo "$BODY_FONTL bgcolor=#ffdddd")
    150151                  fi
    151152
    152                   FONTC=$(echo "$BODY_FONTC $color")
    153                   FONTL=$(echo "$BODY_FONTL $color")
     153
    154154                  echo $line | awk -v FONTC="$FONTC" -v FONTL="$FONTL" '
    155155                  { 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);}
Note: See TracChangeset for help on using the changeset viewer.