mirror of https://github.com/ecmwf/eccodes.git
Testing: Indexing BUFR
This commit is contained in:
parent
cd03fcb6cb
commit
a9acb2673e
|
@ -45,6 +45,15 @@ ${tools_dir}/bufr_index_build -k mars.ident -o $tempIndex $infile |\
|
||||||
# ------------------
|
# ------------------
|
||||||
# Error conditions
|
# 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
|
echo BUFR > $tempBufr
|
||||||
set +e
|
set +e
|
||||||
${tools_dir}/bufr_index_build $tempBufr > $tempOut 2>&1
|
${tools_dir}/bufr_index_build $tempBufr > $tempOut 2>&1
|
||||||
|
|
Loading…
Reference in New Issue