Ignore:
Timestamp:
10/04/19 17:36:51 (5 years ago)
Author:
yushan
Message:

GENERIC_TESTCASE : check all .nc files by default. Generate Cmake files from python scripts (user_config.py, setup.py). Add scripts for copy to/from compressed reference stored in /gpfswork/rech/psl/rpsl954 (Jean-Zay and Irene).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/user_config.py

    r1729 r1734  
    11import os 
    22import sys 
     3import subprocess 
    34 
    45def main(): 
     
    1213                if folder.startswith("test_"): 
    1314                        test_list.append(folder) 
    14                         os.system('cd '+folder+' && python setup.py') 
     15                        # os.system('cd '+folder+' && python setup.py') 
     16                        FNULL = open(os.devnull, 'w') 
     17                        retcode = subprocess.call(['cd', folder, ' && python setup.py'], 
     18                          stdout=FNULL, 
     19                          stderr=subprocess.STDOUT) 
     20                         
     21                        if retcode!=0:   
     22                                print >> sys.stderr, retcode 
     23                                sys.exit() 
    1524         
    1625 
     
    4251        f.close 
    4352         
     53        print >> sys.stderr, 0 
     54        sys.exit() 
    4455 
    4556if __name__== "__main__": 
Note: See TracChangeset for help on using the changeset viewer.