Remove test for bufr_compare -r. Test is incorrect, this option does not work!

This commit is contained in:
Shahram Najm 2016-08-10 13:54:08 +01:00
parent 89c0744014
commit 4aab97f0fb
1 changed files with 11 additions and 11 deletions

View File

@ -74,17 +74,17 @@ ${tools_dir}/bufr_compare -b dataCategory $f ${fBufrTmp}>> $fLog
# Test: comparing with the -r switch
#----------------------------------------------------
#Create a bufr file with various message types
cat syno_multi.bufr temp_101.bufr > $fBufrInput1
cat temp_101.bufr syno_multi.bufr > $fBufrInput2
#cat syno_multi.bufr temp_101.bufr > $fBufrInput1
#cat temp_101.bufr syno_multi.bufr > $fBufrInput2
set +e
${tools_dir}/bufr_compare ${fBufrInput1} ${fBufrInput2} >> $fLog
if [ $? -eq 0 ]; then
echo "bufr_compare should have failed if the message order in the files is different" >&2
exit 1
fi
set -e
${tools_dir}/bufr_compare -r ${fBufrInput1} ${fBufrInput2}>> $fLog
#set +e
#${tools_dir}/bufr_compare ${fBufrInput1} ${fBufrInput2} >> $fLog
#if [ $? -eq 0 ]; then
# echo "bufr_compare should have failed if the message order in the files is different" >&2
# exit 1
#fi
#set -e
#${tools_dir}/bufr_compare -r ${fBufrInput1} ${fBufrInput2}>> $fLog
#----------------------------------------------------
# Change subCentre and compare
@ -105,7 +105,7 @@ mkdir -p $temp_dir
infile=aaen_55.bufr
cp $infile $temp_dir
${tools_dir}bufr_compare $infile $temp_dir >/dev/null
rm -rf $temp_dir
rm -fr $temp_dir
#----------------------------------------------------
# Compare attributes