diff --git a/tests/codes_export_resource.sh b/tests/codes_export_resource.sh index c9795e944..fddb45c45 100755 --- a/tests/codes_export_resource.sh +++ b/tests/codes_export_resource.sh @@ -43,6 +43,12 @@ cmp $ECCODES_DEFINITION_PATH/$f $temp # Failing cases # ---------------- +set +e +${tools_dir}/codes_export_resource +status=$? +set -e +[ $status -eq 1 ] + set +e ${tools_dir}/codes_export_resource -d nonexistent $temp status=$? @@ -55,6 +61,11 @@ status=$? set -e [ $status -eq 1 ] +set +e +${tools_dir}/codes_export_resource -z A B +status=$? +set -e +[ $status -eq 1 ] # Clean up diff --git a/tests/codes_split_file.sh b/tests/codes_split_file.sh index 88021b4c2..9f5577f14 100755 --- a/tests/codes_split_file.sh +++ b/tests/codes_split_file.sh @@ -16,6 +16,7 @@ temp=$label.temp.grib # Do all the work in a temporary directory temp_dir=tempdir.${label} +rm -rf $temp_dir mkdir -p $temp_dir cd $temp_dir @@ -59,6 +60,14 @@ total=`${tools_dir}/codes_count tigge_ecmwf.grib2_[0-9]*` cat tigge_ecmwf.grib2_[0-9][0-9][0-9] > $temp ${tools_dir}/grib_compare $input $temp +# Failing cases +# ---------------- +set +e +${tools_dir}/codes_split_file +status=$? +set -e +[ $status -eq 1 ] + # Clean up cd $test_dir