Testing: provide better message on failure

This commit is contained in:
Shahram Najm 2016-03-08 17:43:45 +00:00
parent f459d88424
commit e8f0205bc3
1 changed files with 7 additions and 1 deletions

View File

@ -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()