From a9acb2673e79334a68ee542594e87ff2031f3df8 Mon Sep 17 00:00:00 2001 From: shahramn Date: Wed, 13 Mar 2024 15:13:16 +0000 Subject: [PATCH] Testing: Indexing BUFR --- tests/bufr_indexing.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/bufr_indexing.sh b/tests/bufr_indexing.sh index 297f71bba..cc1c4cb39 100755 --- a/tests/bufr_indexing.sh +++ b/tests/bufr_indexing.sh @@ -45,6 +45,15 @@ ${tools_dir}/bufr_index_build -k mars.ident -o $tempIndex $infile |\ # ------------------ # Error conditions # ------------------ +infile=${data_dir}/bufr/vos308014_v3_26.bufr +set +e +${tools_dir}/bufr_index_build -o $tempIndex $infile > $tempOut 2>&1 +status=$? +set -e +[ $status -ne 0 ] +grep -q "Unable to unpack BUFR to create index" $tempOut + + echo BUFR > $tempBufr set +e ${tools_dir}/bufr_index_build $tempBufr > $tempOut 2>&1