diff --git a/examples/F90/bufr_read_header.sh b/examples/F90/bufr_read_header.sh index c3be92506..3d224c9e9 100755 --- a/examples/F90/bufr_read_header.sh +++ b/examples/F90/bufr_read_header.sh @@ -9,33 +9,25 @@ . ./include.sh -#Define a common label for all the tmp files +# Define a common label for all the tmp files label="bufr_read_header_test_f" - -#Prepare tmp file fTmp=${label}.tmp.txt -rm -f $fTmp | true +rm -f $fTmp #----------------------------------------------------- # Test reading the header from a BUFR # file with multiple messages #---------------------------------------------------- - f=${data_dir}/bufr/syno_multi.bufr fRef=${f}.header.ref REDIRECT=/dev/null -#Write the values into a file and compare with reference -${examples_dir}/eccodes_f_bufr_read_header $f 2> $REDIRECT > $fTmp +# Write the values into a file and compare with reference +${examples_dir}/eccodes_f_bufr_read_header $f 2> $REDIRECT > $fTmp -#We compare output to the reference by ignoring the whitespaces +# Compare output to the reference by ignoring the whitespaces diff -w $fRef $fTmp >$REDIRECT 2> $REDIRECT -#cat $fRes - #Clean up -rm -f ${fTmp} | true - - - +rm -f ${fTmp}