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