Changeset 16626


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

CHG: better handling of test results.

File:
1 edited

Legend:

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

    r16616 r16626  
    308308juLogClean
    309309
    310 rm -rf juLogFile && cat matlab_log.log | grep "test id" > juLogFile
    311 
    312 while read i; do
    313         juLog  -name=Error -error=ERROR echo $i
    314         juLog  -name=Failure -error=FAILURE   echo $i
    315 done < juLogFile
    316 #}}}
     310#number tests:
     311numtests=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | wc -l`
     312testlist=`cat matlab_log.log  | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g'  | sed 's/-//g'`
     313
     314#look through numtests:
     315for i in `echo $testlist`
     316do
     317        test=`awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log`
     318        juLog  -name=Error -error=ERROR echo $test
     319        juLog  -name=Failure -error=FAILURE  echo $test
     320done
     321#}}}
Note: See TracChangeset for help on using the changeset viewer.