Changeset 23269


Ignore:
Timestamp:
09/12/18 15:23:10 (7 years ago)
Author:
kruegern
Message:

FIX: fixed runme.py bug causing default behavior to run no tests rather than all tests (except those explicitly excluded)

File:
1 edited

Legend:

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

    r23176 r23269  
    8282        flist=glob('test*.py')    #File name must start with 'test' and must end by '.py' and must be different than 'test.py'
    8383        list_ids=[int(file[4:-3]) for file in flist if not file == 'test.py']    #Keep test id only (skip 'test' and '.py')
    84         #print 'list_ids =',list_ids
    8584
    8685        i1,i2=parallelrange(rank,numprocs,len(list_ids))    #Get tests for this cpu only
    8786        list_ids=list_ids[i1:i2+1]
    88         #print 'list_ids after parallelrange =',list_ids
    8987       
    90         if id:
     88        if np.size(id) > 0:
    9189                test_ids = set(GetIds(id)).intersection(set(list_ids))
    9290        else:
     
    9492                test_ids = set(list_ids)
    9593               
    96         #print 'test_ids after list =',test_ids
    9794        # }}}
    9895        #GET exclude {{{
     
    10097
    10198        test_ids=test_ids.difference(exclude_ids)
    102         #print 'test_ids after exclude =',sorted(test_ids)
    103         #return
    10499        # }}}
    105100        #Process Ids according to benchmarks {{{
     
    124119        elif benchmark=='adolc':
    125120                test_ids=test_ids.intersection(set(range(3001,3200)))
    126         #print 'test_ids after benchmark =',test_ids
    127121        test_ids=list(test_ids)
    128122        test_ids.sort()
    129         #print 'test_ids after sort =',test_ids
    130123        # }}}
    131124
Note: See TracChangeset for help on using the changeset viewer.