Fix broken tests: output temp files must be uniquely named

This commit is contained in:
Shahram Najm 2017-06-13 13:11:19 +01:00
parent a27665392b
commit ce61a01d79
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,8 @@
REDIRECT=/dev/null
temp=temp.grib2to3.grib3
label="grib2to3"
temp=temp.$label.grib3
sample_g2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
${tools_dir}/grib_set -s editionNumber=3 $sample_g2 $temp
${tools_dir}/grib_dump -O -M $temp
@ -39,7 +40,7 @@ files="constant_field\
for f in $files
do
file=${data_dir}/$f
output=${file}.grib3_
output=${file}.temp.$label.grib3_
rm -f ${output}
${tools_dir}/grib_set -s editionNumber=3 ${file}.grib1 ${output}

View File

@ -11,7 +11,8 @@
REDIRECT=/dev/null
temp=temp.grib1to3.grib3
label="grib1to3"
temp=temp.$label.grib3
sample_g1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
${tools_dir}/grib_set -s editionNumber=3 $sample_g1 $temp
${tools_dir}/grib_dump -O -M $temp
@ -38,7 +39,7 @@ files="constant_field\
for f in $files
do
file=${data_dir}/$f
output=${file}.grib3_
output=${file}.temp.$label.grib3_
rm -f ${output}
${tools_dir}/grib_set -s editionNumber=3 ${file}.grib2 ${output}