Changeset 1890


Ignore:
Timestamp:
06/10/20 15:08:30 (2 months ago)
Author:
yushan
Message:

trunk : minor modif

Location:
XIOS/trunk/xios_test_suite/TEST_SUITE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/xios_test_suite/TEST_SUITE/run_test_irene

    r1888 r1890  
    77export build_dir=xios_test_suite/RUN_TEST_SUITE/build_${arch}_${mode} 
    88export svnR=$(svn info --show-item revision ../../) 
     9export ref_location=/ccc/cont003/home/gencmip6/wangyush/cron_xios 
     10export ref_file=reference.tar.gz 
    911 
    1012echo "Start Building XIOS ... " 
  • XIOS/trunk/xios_test_suite/TEST_SUITE/step2.py

    r1888 r1890  
    1313arch=os.getenv("arch") 
    1414svnr=os.getenv("svnR") 
    15  
     15ref_location=os.getenv("ref_location") 
     16ref_file=os.getenv("ref_file") 
    1617 
    1718def OSinfo(runthis): 
     
    4041 
    4142def main(): 
    42      
     43    OSinfo("cp "+ref_location+"/"+ref_file+" ./") 
     44    OSinfo("tar -zxvf "+ref_file) 
     45    OSinfo("rm -f "+ref_file) 
    4346    test_folder_list = glob.glob('test_*') 
    4447 
     
    5659                config_name = list(config.split("/"))[1] 
    5760                for checkfile in checkfiles: 
    58                     if os.path.exists(config+"/"+checkfile) and os.path.exists("ref_"+config+"/"+checkfile): 
    59                         OSinfo("cdo -W diffn "+config+"/"+checkfile+" "+"ref_"+config+"/"+checkfile+" | > diff.txt") 
     61                    if os.path.exists(config+"/"+checkfile) and os.path.exists("reference/ref_"+config+"/"+checkfile): 
     62                        OSinfo("cdo -W diffn "+config+"/"+checkfile+" "+"reference/ref_"+config+"/"+checkfile+" | > diff.txt") 
    6063                        if os.stat("diff.txt").st_size==0: 
    6164                            report.write(folder_name+" "+folder_name+"@"+config_name+" "+folder_name+"@"+config_name+"@"+checkfile+" "+str(1)+"\n") 
Note: See TracChangeset for help on using the changeset viewer.