mirror of https://github.com/ecmwf/eccodes.git
Tests: clean up temp data. Remove dependencies between tests (a test should not depend on another one having been run before)
This commit is contained in:
parent
c60f71b119
commit
a67d5a66de
|
@ -11,4 +11,4 @@
|
|||
|
||||
${examples_dir}precision > /dev/null
|
||||
|
||||
|
||||
rm -f out.grib1
|
||||
|
|
|
@ -11,6 +11,11 @@
|
|||
|
||||
${examples_dir}set > /dev/null
|
||||
|
||||
# Create the grib2 file needed for this test
|
||||
grib1File=${data_dir}/reduced_gaussian_pressure_level.grib1
|
||||
grib2File=${data_dir}/reduced_gaussian_pressure_level.grib2
|
||||
${tools_dir}grib_set -s editionNumber=2 $grib1File $grib2File
|
||||
|
||||
${examples_dir}set_missing > /dev/null
|
||||
|
||||
|
||||
rm -f out.grib1 out_surface_level.grib2 $grib2File
|
||||
|
|
|
@ -10,3 +10,4 @@
|
|||
. ./include.sh
|
||||
|
||||
${examples_dir}copy_message > /dev/null
|
||||
rm -f out.grib1
|
||||
|
|
|
@ -17,3 +17,5 @@ diff index_f90.out ${data_dir}/index_f90.ok
|
|||
# if an index file exists then load the index from it
|
||||
${examples_dir}index > index_f90.out
|
||||
diff index_f90.out ${data_dir}/index_f90.ok
|
||||
|
||||
rm -f index.idx index_f90.out
|
||||
|
|
|
@ -11,3 +11,4 @@
|
|||
|
||||
${examples_dir}multi > multi.out
|
||||
diff multi.out ${data_dir}/multi.ok
|
||||
rm -f multi.out
|
||||
|
|
|
@ -10,3 +10,4 @@
|
|||
. ./include.sh
|
||||
|
||||
${examples_dir}precision > /dev/null
|
||||
rm -f ${data_dir}/regular_latlon_surface_prec.grib1
|
||||
|
|
|
@ -23,3 +23,5 @@ GRIB_SAMPLES_PATH=${samples_dir}:${data_dir}
|
|||
export GRIB_SAMPLES_PATH
|
||||
${examples_dir}samples > /dev/null
|
||||
|
||||
rm -f out.grib1
|
||||
rm -f ${data_dir}/regular_latlon_surface.grib1.tmpl
|
||||
|
|
|
@ -10,3 +10,4 @@
|
|||
. ./include.sh
|
||||
|
||||
${examples_dir}set > /dev/null
|
||||
rm -f out.grib1
|
||||
|
|
|
@ -9,3 +9,4 @@
|
|||
|
||||
. ./include.sh
|
||||
${examples_dir}set_bitmap > /dev/null
|
||||
rm -f out.grib
|
||||
|
|
|
@ -9,4 +9,10 @@
|
|||
|
||||
. ./include.sh
|
||||
|
||||
# Create the grib2 file needed for this test
|
||||
grib1File=${data_dir}/reduced_gaussian_pressure_level.grib1
|
||||
grib2File=${data_dir}/reduced_gaussian_pressure_level.grib2
|
||||
${tools_dir}grib_set -s editionNumber=2 $grib1File $grib2File
|
||||
|
||||
${examples_dir}set_missing > /dev/null
|
||||
rm -f out_surface_level.grib2 $grib2File
|
||||
|
|
|
@ -10,3 +10,4 @@
|
|||
. ./include.sh
|
||||
|
||||
${examples_dir}set_pv > /dev/null
|
||||
rm -f out.grib1
|
||||
|
|
|
@ -47,7 +47,7 @@ def main():
|
|||
if VERBOSE:
|
||||
traceback.print_exc(file=sys.stderr)
|
||||
else:
|
||||
print >>sys.stderr,err.msg
|
||||
print >> sys.stderr,err.msg
|
||||
|
||||
return 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue