mirror of https://github.com/ecmwf/eccodes.git
ECC-1516: grib_dump error on index file
This commit is contained in:
parent
daa0924312
commit
1694547f39
|
@ -109,5 +109,13 @@ ${tools_dir}/grib_index_build -N -o $tempIndex2 $tempGribFile2
|
|||
${tools_dir}/grib_compare $tempIndex1 $tempIndex2
|
||||
rm -f $tempIndex1 $tempIndex2 $tempGribFile1 $tempGribFile2
|
||||
|
||||
# ECC-1516
|
||||
# ---------
|
||||
sample1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
|
||||
${tools_dir}/grib_index_build -N -o $tempIndex1 $sample1 > /dev/null
|
||||
${tools_dir}/grib_dump $tempIndex1 >/dev/null
|
||||
|
||||
|
||||
# Clean up
|
||||
rm -f $tempIndex $tempOut $tempRef
|
||||
rm -f $tempOut $tempRef
|
||||
rm -f $tempIndex $tempIndex1 $tempIndex2 $tempGribFile1 $tempGribFile2
|
||||
|
|
|
@ -151,6 +151,7 @@ int grib_tool_new_file_action(grib_runtime_options* options, grib_tools_file* fi
|
|||
/* Since there are no GRIB messages, we have to stop tool exiting in case there
|
||||
* are more index files */
|
||||
options->fail = 0;
|
||||
options->skip_all = 1; /* ECC-1516 */
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue