mirror of https://github.com/ecmwf/eccodes.git
ECC-356: Fix for bufr_compare
This commit is contained in:
parent
d6da360ed2
commit
2819966c2d
|
@ -71,7 +71,9 @@ do
|
|||
# The executable always creates a file called outfile.bufr
|
||||
# valgrind --error-exitcode=1 ./$tempExe
|
||||
./$tempExe
|
||||
${tools_dir}/bufr_compare ${data_dir}/bufr/$file $tempBufr
|
||||
|
||||
# ECC-356: have to blacklist 'ident' because of the spaces
|
||||
${tools_dir}/bufr_compare -b ident ${data_dir}/bufr/$file $tempBufr
|
||||
|
||||
TEMP_OUT1=${label}.$file.dump.out
|
||||
TEMP_OUT2=${label}.$tempBufr.dump.out
|
||||
|
|
|
@ -1255,6 +1255,17 @@ static int compare_all_dump_keys(grib_handle* handle1, grib_handle* handle2, gri
|
|||
}
|
||||
|
||||
grib_keys_iterator_delete(iter);
|
||||
|
||||
/* ECC-356: Handling special case of 'ident' key */
|
||||
name = "ls.ident";
|
||||
if (!blacklisted("ident") && grib_is_defined(handle1, name) && grib_is_defined(handle2, name)) {
|
||||
if (compare_values(options, handle1, handle2, "ident", GRIB_TYPE_STRING)) {
|
||||
err++;
|
||||
write_messages(handle1, handle2);
|
||||
ret=1;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue