ECC-1695: Fix tests

This commit is contained in:
shahramn 2024-05-13 13:49:48 +01:00
parent 8bceabc607
commit 760fb4beda
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ latestOfficial=`${tools_dir}/grib_get -p tablesVersionLatestOfficial $sample2`
latest_codetable_file=$ECCODES_DEFINITION_PATH/grib2/tables/$latestOfficial/4.0.table
awk '$1 !~ /#/ && $1 < 65000 {print $1}' $latest_codetable_file | while read pdtn; do
if [ ! -f "$ECCODES_DEFINITION_PATH/grib2/template.4.$pdtn.def" ]; then
if [ ! -f "$ECCODES_DEFINITION_PATH/grib2/templates/template.4.$pdtn.def" ]; then
echo "GRIB2 template for product definition $pdtn does not exist!"
exit 1
fi

View File

@ -16,9 +16,9 @@ tempOut=temp.$label.txt
if [ -d "$ECCODES_DEFINITION_PATH" ]; then
if [ -x "${tools_dir}/grib_list_keys" ]; then
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/boot.def > $tempOut
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/template.4.2000.def > $tempOut
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/template.3.0.def > $tempOut
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/template.3.120.def > $tempOut
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/templates/template.4.2000.def > $tempOut
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/templates/template.3.0.def > $tempOut
${tools_dir}/grib_list_keys $ECCODES_DEFINITION_PATH/grib2/templates/template.3.120.def > $tempOut
fi
fi