Changeset 13218


Ignore:
Timestamp:
09/01/12 08:48:05 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor style change

File:
1 edited

Legend:

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

    r13210 r13218  
    44#style
    55#{{{
    6 H1_STYLE='width="700px" cellpadding="5"'
    7 H1_FONT='style="color:#6495ed; font-family:Arial, Verdana, Tahoma; font-weight: bold; font-size:30px;" align="center"'
    8 H2_STYLE='width="700px" cellpadding="5"'
    9 H2_FONT='style="color:#6495ed; font-family:Arial, Verdana, Tahoma; font-size:25px; font-weight: bold;" align="left"'
     6TITLE_STYLE='width="700px" cellpadding="10"'
     7TITLE_FONT='style="color:#6495ed; font-family:Arial, Verdana, Tahoma; font-weight: bold; font-size:25px;" align="center"'
     8SECTION_STYLE='width="700px" cellpadding="5"'
     9SECTION_FONT='style="color:#6495ed; font-family:Arial, Verdana, Tahoma; font-size:20px; font-weight: bold;" align="left"'
    1010TABLE_STYLE='width="680px" rules=none bgcolor="#ffffdd" border=1 bordercolor="#000000" cellpadding="3"'
    1111TABLE_FONT='style="color:#404040; font-family:Arial, Verdana, Tahoma; font-size:14px; font-weight: normal;" align="left"'
     
    5353cat << END >> report.html
    5454<div align="center">
    55 <table $H1_STYLE><tr><td $H1_FONT>ISSM Nightly run report</td></tr></table>
     55<table $TITLE_STYLE><tr><td $TITLE_FONT>ISSM Nightly run report</td></tr></table>
    5656
    5757<table $TABLE_STYLE>
     
    7878        cat << END >> report.html
    7979        <table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    80         <tr><td $BODY_FONTC>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>
     
    100100#write report {{{
    101101cat << END >> report.html
    102 <table $H2_STYLE><tr><td $H2_FONT>Matlab tests</td></tr></table>
     102<table $SECTION_STYLE><tr><td $SECTION_FONT>Matlab tests</td></tr></table>
    103103<table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    104104$(if [ $CRASH_MATLAB -eq 0 ]; then
    105 echo "<tr><td $BODY_FONTL>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_FONTL>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)
    109109<tr><td $BODY_FONTL>Total execution time: $EL_MATLAB</td></tr>
     
    129129#write report {{{
    130130cat << END >> report.html
    131 <table $H2_STYLE><tr><td $H2_FONT>Python tests</td></tr></table>
     131<table $SECTION_STYLE><tr><td $SECTION_FONT>Python tests</td></tr></table>
    132132<table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    133133$(if [ $CRASH_PYTHON -eq 0 ]; then
    134         echo "<tr><td $BODY_FONTL>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_FONTL>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)
    138138<tr><td $BODY_FONTL>Total execution time: $EL_PYTHON</td></tr>
     
    152152then
    153153        cat << END >> report.html
    154 <table $H2_STYLE><tr><td $(echo $H2_FONT)>List of Matlab tests</td></tr></table>
     154<table $SECTION_STYLE><tr><td $(echo $SECTION_FONT)>List of Matlab tests</td></tr></table>
    155155<table $BODY_STYLE style="border-collapse:collapse;">
    156156<tr>
     
    205205then
    206206        cat << END >> report.html
    207         <table $(echo $H2_STYLE)><tr><td $(echo $H2_FONT)>List of Python tests</td></tr></table>
     207        <table $(echo $SECTION_STYLE)><tr><td $(echo $SECTION_FONT)>List of Python tests</td></tr></table>
    208208        <table $(echo $BODY_STYLE) style="border-collapse:collapse;">
    209209        <tr>
     
    217217do
    218218        echo "<tr>"
    219 
    220         #get status
    221219        STATUS=`echo $line | awk '{print $1}'`
    222220
     
    263261#Matlab {{{
    264262cat << END >> report.html
    265 <table $H2_STYLE><tr><td $H2_FONT>Matlab errors</td></tr></table>
     263<table $SECTION_STYLE><tr><td $SECTION_FONT>Matlab errors</td></tr></table>
    266264<table $MATLAB_STYLE><tr><td $MATLAB_FONT>
    267265<pre style="
     
    279277        #PETSc{{{
    280278cat << END >> report.html
    281 <table $H2_STYLE><tr><td $H2_FONT>PETSc errors</td></tr></table>
     279<table $SECTION_STYLE><tr><td $SECTION_FONT>PETSc errors</td></tr></table>
    282280<table $MATLAB_STYLE><tr><td $MATLAB_FONT>
    283281<pre style="
Note: See TracChangeset for help on using the changeset viewer.