ECC-407: Fix test. On MACOS 'head' does not have --bytes option

This commit is contained in:
Shahram Najm 2018-01-02 11:21:27 +00:00
parent ff3a2eded4
commit fce07af755
1 changed files with 3 additions and 2 deletions

View File

@ -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