mirror of https://github.com/ecmwf/eccodes.git
Testing: Catch error messages (Setting integer values double array)
This commit is contained in:
parent
f6d42954d2
commit
f55015ee10
|
@ -17,6 +17,9 @@ tempOut=temp.$label.txt
|
|||
tempRef=temp.$label.ref
|
||||
tempBud=temp.$label.bud
|
||||
|
||||
# Abort if any error messages are posted
|
||||
export ECCODES_FAIL_IF_LOG_MESSAGE=1
|
||||
|
||||
${tools_dir}/grib_ls -j ${data_dir}/budg > $tempOut
|
||||
cat > $tempRef << EOF
|
||||
{ "messages" : [
|
||||
|
|
|
@ -20,6 +20,9 @@ REDIRECT=/dev/null
|
|||
|
||||
sample=$ECCODES_SAMPLES_PATH/diag.tmpl
|
||||
|
||||
# Abort if any error messages are posted
|
||||
export ECCODES_FAIL_IF_LOG_MESSAGE=1
|
||||
|
||||
# Basic grib commands should not fail
|
||||
# ------------------------------------
|
||||
${tools_dir}/grib_ls $sample > $REDIRECT
|
||||
|
|
Loading…
Reference in New Issue