From ef681982463d5154422fab875c371d26cb264460 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 29 Jun 2023 12:02:51 +0000 Subject: [PATCH] Testing: headers_only mode in GRIB2 --- tests/grib_headers_only.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/grib_headers_only.sh b/tests/grib_headers_only.sh index 1c98adf9b..30010f37c 100755 --- a/tests/grib_headers_only.sh +++ b/tests/grib_headers_only.sh @@ -18,11 +18,10 @@ rm -f $tempText $tempLog sample_g1="$ECCODES_SAMPLES_PATH/GRIB1.tmpl" sample_g2="$ECCODES_SAMPLES_PATH/GRIB2.tmpl" -# files="$sample_g1 $sample_g2" #TODO: include GRIB2 as well -files="$sample_g1" #TODO: include GRIB2 as well -for file in $files; do +files="$sample_g1 $sample_g2" +for f in $files; do # Since we're not including the data section, the packingType key must not appear - ${tools_dir}/grib_ls -j -M -x $file > $tempLog + ${tools_dir}/grib_ls -j -M -x $f > $tempLog set +e grep -q "packingType" $tempLog status=$?