Changeset 1576


Ignore:
Timestamp:
08/05/09 11:56:22 (16 years ago)
Author:
seroussi
Message:

some fixing

File:
1 edited

Legend:

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

    r1574 r1576  
    1313
    1414#create some variables
     15if [ `wc -l nightly.log | awk '{printf("%s",$1);}'`  = "0" ]
     16then
     17        IS_INSTALL=0
     18else
     19        IS_INSTALL=1
     20fi
    1521if [ `wc -l check.log | awk '{printf("%s",$1);}'`  = "0" ]
    1622then
     
    1824else
    1925        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
    2626fi
    2727
     
    107107runs elapsed time: $ELAPSED_RUN<br>
    108108<br>
    109 status: $(if [ $IS_INSTALL==0 ];
     109status: $(if [ $(echo $IS_INSTALL) = 0 ];
    110110then
    111111        #installation failed, end of report
     
    113113        rm check.log errors.log success.log tests.log
    114114else
    115         if [ $IS_END==0 ];
     115        if [ $(echo $IS_END) = 0 ];
    116116        then
    117117                echo "<span style=\"color:#FF0000\">stopped before the end</span>"
     
    129129
    130130#report content
    131 if [ $IS_END != 0 ];
     131if [ $(echo $IS_INSTALL) = 1 ];
    132132then
    133133        cat << END > content.html
     
    208208
    209209#concatenate files
    210 if [ $IS_END != 0 ];
     210if [ $(echo $IS_INSTALL) = 1 ];
    211211then
    212212        cat header.html summary.html content.html footer.html > report.html
Note: See TracChangeset for help on using the changeset viewer.