From 19b63aa4b1a2564ebad818a81b42e77b3093628c Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 14 Mar 2022 15:38:59 +0000 Subject: [PATCH] ECC-1369: handle_new_from_samples: Allow sample file to include its extension --- tests/codes_export_resource.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/codes_export_resource.sh b/tests/codes_export_resource.sh index b8444ebd1..248682760 100755 --- a/tests/codes_export_resource.sh +++ b/tests/codes_export_resource.sh @@ -15,13 +15,14 @@ temp=temp.$label # Sample files # ---------------- +${tools_dir}/codes_export_resource -s GRIB2 $temp +cmp $ECCODES_SAMPLES_PATH/GRIB2.tmpl $temp + +# ECC-1369: Include the extension f='GRIB2.tmpl' ${tools_dir}/codes_export_resource -s $f $temp cmp $ECCODES_SAMPLES_PATH/$f $temp -# Use the shortened form -${tools_dir}/codes_export_resource -s GRIB2 $temp -cmp $ECCODES_SAMPLES_PATH/GRIB2.tmpl $temp # IFS Samples # ----------------