Changeset 24361


Ignore:
Timestamp:
11/19/19 16:44:45 (6 years ago)
Author:
jdquinn
Message:

CHG: Catch MATLAB license (and other) failures

File:
1 edited

Legend:

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

    r24321 r24361  
    538538                juLog  -test=MATLAB-$i -name=Failure -error=FAILURE awk "/starting:$i/{flag=1;next}/finished/{flag=0} flag{print}" matlab_log.log
    539539        done
     540
     541        # Check that Python did not exit in error
     542        matlabExitedInError=`grep -E "Error" matlab_log.log | wc -l`
     543
     544        if [ $matlabExitedInError -ne 0 ]
     545        then
     546                echo "----------MATLAB exited in error!----------"
     547                cat matlab_log.log
     548                echo "-----------End of matlab_log.log-----------"
     549
     550                # Clean up execution directory
     551                rm -rf $ISSM_DIR/execution/*
     552
     553                exit 1
     554        fi
    540555fi
    541556
Note: See TracChangeset for help on using the changeset viewer.