Changeset 24219


Ignore:
Timestamp:
10/14/19 15:02:35 (5 years ago)
Author:
jdquinn
Message:

BUG: Fixes to Python test driver

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

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

    r24218 r24219  
    520520
    521521# Check that Python did not exit in error
    522 pythonExitedInError=`grep "Traceback" python_log.log | wc -l`
     522pythonExitedInError=`grep -E "Traceback|bad interpreter" python_log.log | wc -l`
    523523
    524524if [ $pythonExitedInError -ne 0 ]
     
    532532
    533533        exit 1
    534 else
    535         echo "PYTHONEXITEDCORRECTLY"
    536 fi
     534fi
     535
     536# Python tests must have run and exited successfully (unless we have missed something)
     537echo "PYTHONEXITEDCORRECTLY"
    537538
    538539if [ $EXAMPLES_TEST -eq 1 ];
  • issm/trunk-jpl/test/NightlyRun/runme.py

    r24214 r24219  
    1 #! / usr / bin / env python
     1#!/usr/bin/env python
    22import os
    33import argparse
     
    245245
    246246        parser = argparse.ArgumentParser(description='RUNME - test deck for ISSM nightly runs')
    247         parser.add_argument(' -i', '--id', nargs=' * ', type=int, help='followed by the list of ids requested', default=[])
    248         parser.add_argument(' -in', '--include_name', nargs=' * ', type=str, help='followed by the list of test names requested', default=[])
    249         parser.add_argument(' -e', '--exclude', nargs=' + ', type=int, help='ids to be excluded from the test', default=[])
    250         parser.add_argument(' -en', '--exclude_name', nargs=' + ', type=str, help='test names to be excluded from the test', default=[])
    251         parser.add_argument(' -b', '--benchmark', help='nightly/ismip/eismint/thermal/mesh/...', default='nightly')
    252         parser.add_argument(' -p', '--procedure', help='check/update', default='check')
    253         parser.add_argument(' -o', '--output', help='nightly/daily/none', default='none')
    254         parser.add_argument(' -r', '--rank', type=int, help='rank', default=1)
    255         parser.add_argument(' -n', '--numprocs', type=int, help='numprocs', default=1)
     247        parser.add_argument('-i', '--id', nargs='*', type=int, help='followed by the list of ids requested', default=[])
     248        parser.add_argument('-in', '--include_name', nargs='*', type=str, help='followed by the list of test names requested', default=[])
     249        parser.add_argument('-e', '--exclude', nargs='+', type=int, help='ids to be excluded from the test', default=[])
     250        parser.add_argument('-en', '--exclude_name', nargs='+', type=str, help='test names to be excluded from the test', default=[])
     251        parser.add_argument('-b', '--benchmark', help='nightly/ismip/eismint/thermal/mesh/...', default='nightly')
     252        parser.add_argument('-p', '--procedure', help='check/update', default='check')
     253        parser.add_argument('-o', '--output', help='nightly/daily/none', default='none')
     254        parser.add_argument('-r', '--rank', type=int, help='rank', default=1)
     255        parser.add_argument('-n', '--numprocs', type=int, help='numprocs', default=1)
    256256        args = parser.parse_args()
    257257
Note: See TracChangeset for help on using the changeset viewer.