Ignore:
Timestamp:
08/31/12 08:20:57 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: simplified font style and align left

File:
1 edited

Legend:

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

    r13203 r13210  
    7878        cat << END >> report.html
    7979        <table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    80         <tr><td $BODY_FONT>status: <span style=\"color:#ff0000\">Installation failed<\/span></td></tr>
     80        <tr><td $BODY_FONTC>status: <span style=\"color:#ff0000\">Installation failed<\/span></td></tr>
    8181        </table>
    8282        <table $FOOTER_STYLE><tr><td $FOOTER_FONT><a href="http://issm.jpl.nasa.gov" title="ISSM website" target="_blank">ISSM</a> nightly run report</td></tr></table>
     
    103103<table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    104104$(if [ $CRASH_MATLAB -eq 0 ]; then
    105 echo "<tr><td $BODY_FONT>status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>"
     105echo "<tr><td $BODY_FONTL>status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>"
    106106else
    107         echo "<tr><td $BODY_FONT>status: <span style=\"color:#ff0000\">Matlab crashed</span></td></tr>"
     107        echo "<tr><td $BODY_FONTL>status: <span style=\"color:#ff0000\">Matlab crashed</span></td></tr>"
    108108fi)
    109 <tr><td $BODY_FONT>Total execution time: $EL_MATLAB</td></tr>
    110 <tr><td $BODY_FONT>Number of successes: $NUM_MATLAB_SUC/$NUM_MATLAB_TOT</td></tr>
    111 <tr><td $BODY_FONT>Number of errors: $NUM_MATLAB_ERR/$NUM_MATLAB_TOT</td></tr>
    112 <tr><td $BODY_FONT>Number of failures: $NUM_MATLAB_FAI/$NUM_MATLAB_TOT</td></tr>
     109<tr><td $BODY_FONTL>Total execution time: $EL_MATLAB</td></tr>
     110<tr><td $BODY_FONTL>Number of successes: $NUM_MATLAB_SUC/$NUM_MATLAB_TOT</td></tr>
     111<tr><td $BODY_FONTL>Number of errors: $NUM_MATLAB_ERR/$NUM_MATLAB_TOT</td></tr>
     112<tr><td $BODY_FONTL>Number of failures: $NUM_MATLAB_FAI/$NUM_MATLAB_TOT</td></tr>
    113113</table>
    114114END
     
    132132<table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    133133$(if [ $CRASH_PYTHON -eq 0 ]; then
    134         echo "<tr><td $BODY_FONT>status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>"
     134        echo "<tr><td $BODY_FONTL>status: <span style=\"color:#008000\">all test desks have been run</span></td></tr>"
    135135else
    136         echo "<tr><td $BODY_FONT>status: <span style=\"color:#ff0000\">Python crashed</span></td></tr>"
     136        echo "<tr><td $BODY_FONTL>status: <span style=\"color:#ff0000\">Python crashed</span></td></tr>"
    137137fi)
    138 <tr><td $BODY_FONT>Total execution time: $EL_PYTHON</td></tr>
    139 <tr><td $BODY_FONT>Number of successes: $NUM_PYTHON_SUC/$NUM_PYTHON_TOT</td></tr>
    140 <tr><td $BODY_FONT>Number of errors: $NUM_PYTHON_ERR/$NUM_PYTHON_TOT</td></tr>
    141 <tr><td $BODY_FONT>Number of failures: $NUM_PYTHON_FAI/$NUM_PYTHON_TOT</td></tr>
     138<tr><td $BODY_FONTL>Total execution time: $EL_PYTHON</td></tr>
     139<tr><td $BODY_FONTL>Number of successes: $NUM_PYTHON_SUC/$NUM_PYTHON_TOT</td></tr>
     140<tr><td $BODY_FONTL>Number of errors: $NUM_PYTHON_ERR/$NUM_PYTHON_TOT</td></tr>
     141<tr><td $BODY_FONTL>Number of failures: $NUM_PYTHON_FAI/$NUM_PYTHON_TOT</td></tr>
    142142</table>
    143143END
     
    152152then
    153153        cat << END >> report.html
    154 <table $(echo $H2_STYLE)><tr><td $(echo $H2_FONT)>List of Matlab tests</td></tr></table>
    155 <table $(echo $BODY_STYLE) style="border-collapse:collapse;">
     154<table $H2_STYLE><tr><td $(echo $H2_FONT)>List of Matlab tests</td></tr></table>
     155<table $BODY_STYLE style="border-collapse:collapse;">
    156156<tr>
    157 <th $(echo $BODY_FONT)>Result</th>
    158 <th $(echo $BODY_FONT)>Tolerance</th>
    159 <th $(echo $BODY_FONT)>Test id</th> 
    160 <th $(echo $BODY_FONT)>Test name</th>
    161 <th $(echo $BODY_FONT)>Field checked</th>
     157<th $BODY_FONT>Result</th>
     158<th $BODY_FONT>Tolerance</th>
     159<th $BODY_FONT>Test id</th> 
     160<th $BODY_FONT>Test name</th>
     161<th $BODY_FONT>Field checked</th>
    162162</tr>
    163163$(cat matlab_short.log | while read line
    164164  do
    165165          echo "<tr>"
    166 
    167           #get status
    168166          STATUS=`echo $line | awk '{print $1}'`
    169 
    170167          #FAILURE
    171168          if [ "$STATUS" = "FAILURE" ]
    172169          then
    173 
    174170                  FONTC=$(echo "$BODY_FONTC bgcolor=#ffff00");
    175171                  FONTL=$(echo "$BODY_FONTL bgcolor=#ffff00");
     
    177173                  { 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);}
    178174                  ';
    179 
    180175          else
    181 
    182176                  #SUCCESS
    183177                  if [ "$STATUS" = "SUCCESS" ]
     
    214208        <table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    215209        <tr>
    216         <th $(echo $BODY_FONT)>Result</th>
    217         <th $(echo $BODY_FONT)>Tolerance</th>
    218         <th $(echo $BODY_FONT)>Test id</th> 
    219         <th $(echo $BODY_FONT)>Test name</th>
    220         <th $(echo $BODY_FONT)>Field checked</th>
     210        <th $BODY_FONT>Result</th>
     211        <th $BODY_FONT>Tolerance</th>
     212        <th $BODY_FONT>Test id</th> 
     213        <th $BODY_FONT>Test name</th>
     214        <th $BODY_FONT>Field checked</th>
    221215        </tr>
    222216        $(cat matlab_short.log | while read line
Note: See TracChangeset for help on using the changeset viewer.