Changeset 1890
- Timestamp:
- 06/10/20 15:08:30 (5 years ago)
- 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 7 7 export build_dir=xios_test_suite/RUN_TEST_SUITE/build_${arch}_${mode} 8 8 export svnR=$(svn info --show-item revision ../../) 9 export ref_location=/ccc/cont003/home/gencmip6/wangyush/cron_xios 10 export ref_file=reference.tar.gz 9 11 10 12 echo "Start Building XIOS ... " -
XIOS/trunk/xios_test_suite/TEST_SUITE/step2.py
r1888 r1890 13 13 arch=os.getenv("arch") 14 14 svnr=os.getenv("svnR") 15 15 ref_location=os.getenv("ref_location") 16 ref_file=os.getenv("ref_file") 16 17 17 18 def OSinfo(runthis): … … 40 41 41 42 def main(): 42 43 OSinfo("cp "+ref_location+"/"+ref_file+" ./") 44 OSinfo("tar -zxvf "+ref_file) 45 OSinfo("rm -f "+ref_file) 43 46 test_folder_list = glob.glob('test_*') 44 47 … … 56 59 config_name = list(config.split("/"))[1] 57 60 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") 60 63 if os.stat("diff.txt").st_size==0: 61 64 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.