Skip to content

Commit

Permalink
Testing: Catch error messages (Setting integer values double array)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Apr 30, 2024
1 parent f6d4295 commit f55015e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/pseudo_budg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" : [
Expand Down
3 changes: 3 additions & 0 deletions tests/pseudo_diag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f55015e

Please sign in to comment.