Changeset 23830


Ignore:
Timestamp:
04/08/19 15:38:55 (6 years ago)
Author:
jdquinn
Message:

CHG: Testing better error parsing in Jenkins for Python tests

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

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

    r23796 r23830  
    382382done
    383383fi
    384 
    385 # Check that Python did not exit in error
    386 exitedInError=`grep "Traceback" python_log.log | wc -l`
    387 
    388 if [ $exitedInError -ne 0 ]
    389 then
    390         echo "----------Python exited in error!----------"
    391         cat python_log.log
    392         echo "-------------------------------------------"
    393         exit 1
    394 fi
    395384# }}}
    396385
     
    525514        done
    526515fi
     516
     517# Check that Python did not exit in error
     518pythonExitedInError=`grep "Traceback" python_log.log | wc -l`
     519
     520if [ $pythonExitedInError -ne 0 ]
     521then
     522        echo "----------Python exited in error!----------"
     523        cat python_log.log
     524        echo "-----------End of python_log.log-----------"
     525        exit 1
     526else
     527        echo "PYTHONEXITEDCORRECTLY"   
     528fi
     529
    527530if [ $EXAMPLES_TEST -eq 1 ];
    528531then
  • issm/trunk-jpl/test/NightlyRun/runme.py

    r23796 r23830  
    252252                args = parser.parse_args()
    253253
    254                 md = runme([args.id, args.include_name], [args.exclude, args.exclude_name], args.benchmark, args.procedure, args.output, args.rank, args.numprocs)
    255 
    256                 if args.output == 'nightly':
    257                         print("PYTHONEXITEDCORRECTLY")
     254                md = runme([args.id, args.include_name], [args.exclude, args.exclude_name], args.benchmark, args.procedure, args.output, args.rank, args.numprocs
    258255
    259256                exit(md)
     257    else:
     258        print("PYTHONSTARTUP not defined in environment")
     259        raise RuntimeError()
Note: See TracChangeset for help on using the changeset viewer.