diff --git a/tests/utils.sh b/tests/utils.sh index e6e0317d3..150cb32a3 100644 --- a/tests/utils.sh +++ b/tests/utils.sh @@ -21,7 +21,13 @@ grib_check_key_equals() key=$2 expected=$3 result=`${tools_dir}grib_get -p $key $file` - [ "$result" = "$expected" ] + if [ "$result" != "$expected" ]; then + echo "File: $file" + echo "Key(s): $key" + echo "Expected: $expected" + echo "Result: $result" + exit 1 + fi } grib_check_key_exists()