/[MITgcm]/MITgcm/verification/testreport
ViewVC logotype

Diff of /MITgcm/verification/testreport

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.131 by jmc, Sat Jan 2 01:53:49 2010 UTC revision 1.132 by jmc, Thu Jan 14 23:17:42 2010 UTC
# Line 631  runmodel() Line 631  runmodel()
631              ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'`              ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'`
632          fi          fi
633          rm -f run.log_tmp          rm -f run.log_tmp
         #if test "x$RETVAL" = x0 ; then  
634          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then          if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then
635              tail $RUNLOG              tail $RUNLOG
636              echo successful 1>&2              echo successful 1>&2
# Line 639  runmodel() Line 638  runmodel()
638              #cp $OUTPUTFILE $CDIR"/"$OUTPUTFILE              #cp $OUTPUTFILE $CDIR"/"$OUTPUTFILE
639              if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi              if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi
640              return 0              return 0
641            elif [ $RETVAL -ne 0 -a $ENDVAL -gt 0 ] ; then
642                #-- for some weird cases (run is finihed but with error code)
643                tail $RUNLOG
644                echo finished with error '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2
645                return 0
646          else          else
647              tail $RUNLOG              tail $RUNLOG
648              echo failed '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2              echo failed '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

  ViewVC Help
Powered by ViewVC 1.1.22