Changeset 25979


Ignore:
Timestamp:
02/04/21 13:34:08 (4 years ago)
Author:
jdquinn
Message:

BUG: Fix for shell2junit updates

Location:
issm/trunk-jpl
Files:
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/shell2junit/install.sh

    r25978 r25979  
    33
    44
    5 #Some cleanup
    6 rm -rf install
    7 mkdir install
     5## Constants
     6#
     7VER="1.0.0"
    88
    9 cp patch/sh2ju.sh install/
     9PREFIX="${ISSM_EXT_DIR}/shell2junit/install" # Set to location where external package should be installed
     10
     11# Cleanup
     12rm -rf ${PREFIX}
     13mkdir -p ${PREFIX}/bin
     14
     15# Download source
     16$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/shell2junit-${VER}.zip" "shell2junit-${VER}.zip"
     17
     18# Unpack source
     19unzip -q shell2junit-${VER}.zip
     20
     21# Install
     22mv shell2junit-${VER}/sh2ju.sh ${PREFIX}/bin
     23
     24# Cleanup
     25rm -rf shell2junit-${VER}
  • issm/trunk-jpl/jenkins/jenkins.sh

    r25977 r25979  
    431431#process logs to be junit compatible
    432432#{{{
    433 cd $ISSM_DIR/nightlylog/
    434 source $ISSM_DIR/externalpackages/shell2junit/install/bin/sh2ju.sh
     433cd $ISSM_DIR/nightlylog
     434source $ISSM_EXT_DIR/shell2junit/install/bin/sh2ju.sh
    435435juLogClean
    436436
     
    440440        testlist=`cat matlab_log.log | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g' | sed 's/-//g'`
    441441
    442         #look through numtests:
     442        # NOTE: Matching pattern is "----------------starting:<TEST_NUM>-". Note trailing hyphen, which guards against greedy matching of, for example, "2010" when searching for "201".
    443443        for i in `echo $testlist`; do
    444                 juLog -test=MATLAB-$i -name=Error -error=ERROR awk "/^starting:${i}$/{flag=1;next}/^finished:${i}$/{flag=0} flag{print}" matlab_log.log
    445                 juLog -test=MATLAB-$i -name=Failure -error=FAILURE awk "/^starting:${i}$/{flag=1;next}/^finished:${i}$/{flag=0} flag{print}" matlab_log.log
     444                juLog -test=MATLAB-$i -name=Error -error=ERROR awk "/starting:${i}-/{flag=1;next}/finished:${i}-/{flag=0} flag{print}" matlab_log.log
     445                juLog -test=MATLAB-$i -name=Failure -error=FAILURE awk "/starting:${i}-/{flag=1;next}/finished:${i}-/{flag=0} flag{print}" matlab_log.log
    446446        done
    447447
     
    466466        testlist=`cat python_log.log | grep "\-\-\-\-\-\-\-\-starting" | sed 's/----------------starting://g' | sed 's/-//g'`
    467467
    468         #look through numtests:
     468        # NOTE: Matching pattern is "----------------starting:<TEST_NUM>-". Note trailing hyphen, which guards against greedy matching of, for example, "2010" when searching for "201".
    469469        for i in `echo $testlist`; do
    470                 juLog -test=PYTHON-$i -name=Error -error=ERROR awk "/^starting:${i}$/{flag=1;next}/^finished:${i}$/{flag=0} flag{print}" python_log.log
    471                 juLog -test=PYTHON-$i -name=Failure -error=FAILURE awk "/^starting:${i}$/{flag=1;next}/^finished:${i}$/{flag=0} flag{print}" python_log.log
     470                juLog -test=PYTHON-$i -name=Error -error=ERROR awk "/starting:${i}-/{flag=1;next}/finished:${i}-/{flag=0} flag{print}" python_log.log
     471                juLog -test=PYTHON-$i -name=Failure -error=FAILURE awk "/starting:${i}-/{flag=1;next}/finished:${i}-/{flag=0} flag{print}" python_log.log
    472472        done
    473473
Note: See TracChangeset for help on using the changeset viewer.