mirror of https://github.com/ecmwf/eccodes.git
ECC-180: Test failure with cray intel compiler: bufr_subset.sh
This commit is contained in:
parent
8a90b0d272
commit
bc2d1d67db
|
@ -15,7 +15,8 @@ label="bufr_subset_test_f"
|
|||
|
||||
#Prepare tmp file
|
||||
fTmp=${label}.tmp.txt
|
||||
rm -f $fTmp | true
|
||||
fTmp2=${label}.tmp2.txt
|
||||
rm -f $fTmp
|
||||
|
||||
#Prepare ref file
|
||||
fRef=${label}.ref
|
||||
|
@ -80,9 +81,11 @@ REDIRECT=/dev/stdout
|
|||
#Write the values into a file and compare with reference
|
||||
${examples_dir}/eccodes_f_bufr_subset 2> $REDIRECT > $fTmp
|
||||
|
||||
#We compare output to the reference by ignoring the whitespaces
|
||||
diff -w $fRef $fTmp >$REDIRECT 2> $REDIRECT
|
||||
# Remove blank lines
|
||||
sed '/^\s*$/d' < $fTmp > $fTmp2
|
||||
|
||||
#We compare output to the reference by ignoring the whitespaces
|
||||
diff -w $fRef $fTmp2 >$REDIRECT 2> $REDIRECT
|
||||
|
||||
#Clean up
|
||||
rm -f $fTmp $fRef
|
||||
rm -f $fTmp $fTmp2 $fRef
|
||||
|
|
Loading…
Reference in New Issue