Skip to content

Commit

Permalink
Testing: grib_dump error conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Oct 9, 2024
1 parent 4e11d8b commit 464ee10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/grib_dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ file=$data_dir/sample.grib2
${tools_dir}/grib_dump -p nonexist $file > $temp 2>&1
grep -q "Key/value not found" $temp

# Invalid options
set +e
${tools_dir}/grib_dump -jOD $file > $temp 2>&1
status=$?
set -e
[ $status -ne 0 ]


# Unreadable message
#-----------------------------------------------------------
Expand Down

0 comments on commit 464ee10

Please sign in to comment.