Ignore:
Timestamp:
07/06/22 16:22:56 (3 years ago)
Author:
jdquinn
Message:

BUG: Better parsing of failures in log files; printing of log files on failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/packagers/mac/test-issm-mac-binaries-matlab.sh

    r27127 r27148  
    3434# Check that MATLAB did not exit in error
    3535matlabExitCode=`echo $?`
    36 matlabExitedInError=`grep -E "Activation cannot proceed|license|Error|Warning: Name is nonexistent or not a directory" matlab.log | wc -l`
     36matlabExitedInError=`grep -c -E "Activation cannot proceed|license|Error|Warning: Name is nonexistent or not a directory" matlab.log`
    3737
    3838if [[ ${matlabExitCode} -ne 0 || ${matlabExitedInError} -ne 0 ]]; then
     
    4545
    4646# Check that all tests passed
    47 numTestsFailed=`cat matlab.log | grep -c -e "FAILED|ERROR"`
     47numTestsFailed=`grep -c -E "FAILED|ERROR" matlab.log`
    4848
    4949if [[ ${numTestsFailed} -ne 0 ]]; then
Note: See TracChangeset for help on using the changeset viewer.