Changeset 16713


Ignore:
Timestamp:
11/12/13 08:00:32 (11 years ago)
Author:
Eric.Larour
Message:

CHG: avoid python log processing if running exclusively in matlab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/jenkins.sh

    r16709 r16713  
    347347juLogClean
    348348
    349 #number tests:
    350 numtests=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | wc -l`
    351 testlist=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g'  | sed 's/-//g'`
    352 
    353 #look through numtests:
    354 for i in `echo $testlist`
    355 do
    356         juLog  -test=MATLAB-$i -name=Error -error=ERROR awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log
    357         juLog  -test=MATLAB-$i -name=Failure -error=FAILURE awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log
    358         juLog  -test=PYTHON-$i -name=Error -error=ERROR awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" python_log.log
    359         juLog  -test=PYTHON-$i -name=Failure -error=FAILURE awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" python_log.log
    360 done
    361 #}}}
     349if [ $MATLAB_TEST -eq 1 ]; then
     350        #number tests:
     351        numtests=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | wc -l`
     352        testlist=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g'  | sed 's/-//g'`
     353
     354        #look through numtests:
     355        for i in `echo $testlist`
     356        do
     357                juLog  -test=MATLAB-$i -name=Error -error=ERROR awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log
     358                juLog  -test=MATLAB-$i -name=Failure -error=FAILURE awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log
     359        done
     360fi
     361if [ $PYTHON_TEST -eq 1 ]; then
     362        #number tests:
     363        numtests=`cat python_log.log  | grep "\-\-\-\-\-\-\-\-starting" | wc -l`
     364        testlist=`cat python_log.log  | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g'  | sed 's/-//g'`
     365
     366        #look through numtests:
     367        for i in `echo $testlist`
     368        do
     369                juLog  -test=PYTHON-$i -name=Error -error=ERROR awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" python_log.log
     370                juLog  -test=PYTHON-$i -name=Failure -error=FAILURE awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" python_log.log
     371        done
     372fi
     373#}}}
Note: See TracChangeset for help on using the changeset viewer.