mirror of https://github.com/ecmwf/eccodes.git
Testing: Catch error messages
This commit is contained in:
parent
b250b23246
commit
cc51075dc6
|
@ -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