Changeset 19052


Ignore:
Timestamp:
01/29/15 10:13:44 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: changed position of 'starting' and 'finished' so that it does not fail on IdToName error

Location:
issm/trunk-jpl/test/NightlyRun
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/runme.m

    r18397 r19052  
    129129root=pwd;
    130130for id=test_ids,
     131        disp(sprintf('%s%i%s','----------------starting:',id,'-----------------------'));
    131132        try,
    132 
    133133                %Execute test
    134134                eval(['cd ' root ]);
     135                id_string='N/A';
    135136                id_string=IdToName(id);
    136                 disp(sprintf('%s%i%s','----------------starting:',id,'-----------------------'));
    137137                eval(['test' num2str(id)]);
    138138
     
    249249                        end
    250250                end
    251                
    252                 disp(sprintf('%s%i%s','----------------finished:',id,'-----------------------'));
    253 
    254251        catch me,
    255252
     
    268265                        if(getfieldvalue(options,'stoponerror',0)), disp('STOP'); return; end
    269266                end
    270                 disp(sprintf('%s%i%s','----------------finished:',id,'-----------------------'));
    271267        end
    272 end
     268        disp(sprintf('%s%i%s','----------------finished:',id,'-----------------------'));
     269end
  • issm/trunk-jpl/test/NightlyRun/runme.py

    r17685 r19052  
    129129        root=os.getcwd()
    130130        for id in test_ids:
     131                print "----------------starting:%i-----------------------" % id
    131132                try:
    132133
     
    134135                        os.chdir(root)
    135136                        id_string=IdToName(id)
    136                         print "----------------starting:%i-----------------------" % id
    137137                        execfile('test'+str(id)+'.py',globals())
    138138
     
    221221
    222222                                f.close()
    223                                 print "----------------finished:%i-----------------------" % id
    224223
    225224                except Exception as me:
     
    243242                                print 'FAILURE difference: N/A test id: %i test name: %s field: %s' % (id,id_string,'N/A')
    244243                                raise RuntimeError(me)
    245                         print "----------------finished:%i-----------------------" % id
    246 
     244
     245                print "----------------finished:%i-----------------------" % id
    247246        return
    248247
Note: See TracChangeset for help on using the changeset viewer.