mirror of https://github.com/ecmwf/eccodes.git
Testing: provide better message on failure
This commit is contained in:
parent
f459d88424
commit
e8f0205bc3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue