mirror of https://github.com/ecmwf/eccodes.git
ECC-407: Fix test. On MACOS 'head' does not have --bytes option
This commit is contained in:
parent
ff3a2eded4
commit
fce07af755
|
@ -24,8 +24,9 @@ count=`${tools_dir}/codes_count $input`
|
||||||
# Files with invalid (unreadable) messages
|
# Files with invalid (unreadable) messages
|
||||||
# -----------------------------------------
|
# -----------------------------------------
|
||||||
temp=$input.truncated
|
temp=$input.truncated
|
||||||
# Remove last 4 bytes of multi message BUFR file
|
# BUFR file size = 660 bytes. Write out only the first 640 bytes
|
||||||
head --bytes=-4 $input > $temp
|
# thereby creating an unreadable final message
|
||||||
|
head -c 640 $input > $temp
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
# Without -f, bufr_count should fail
|
# Without -f, bufr_count should fail
|
||||||
|
|
Loading…
Reference in New Issue