From d96bf925e0ac3591cdb1b38c8d046851f241be18 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sun, 27 Aug 2023 11:54:05 +0100 Subject: [PATCH] Testing --- tests/codes_split_file.sh | 8 -------- tests/grib_ls.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/codes_split_file.sh b/tests/codes_split_file.sh index c634c8a6c..641739a55 100755 --- a/tests/codes_split_file.sh +++ b/tests/codes_split_file.sh @@ -74,14 +74,6 @@ status=$? set -e [ $status -eq 1 ] -if [ $ECCODES_ON_WINDOWS -eq 0 ]; then - set +e - ${tools_dir}/codes_split_file 9 /dev/null - status=$? - set -e - [ $status -eq 1 ] -fi - set +e ${tools_dir}/codes_split_file 0 $input status=$? diff --git a/tests/grib_ls.sh b/tests/grib_ls.sh index 3329ae48c..f702c0747 100755 --- a/tests/grib_ls.sh +++ b/tests/grib_ls.sh @@ -115,6 +115,14 @@ echo "ECC-278: grib_ls -n namespace..." ${tools_dir}/grib_ls -n geography $ECCODES_SAMPLES_PATH/reduced_ll_sfc_grib2.tmpl ${tools_dir}/grib_ls -n data $sample_g1 +set +e +${tools_dir}/grib_ls -n nosuchnamespace $sample_g1 > $tempText 2>&1 +status=$? +set -e +[ $status -ne 0 ] +grep -q "does not contain any key" $tempText + + # Angle subdivisions grib_check_key_equals $sample_g1 angleSubdivisions 1000 grib_check_key_equals $sample_g2 angleSubdivisions 1000000