binman: Workaround lz4 cli padding in test cases
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 10 Apr 2025 12:43:03 +0000 (06:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Apr 2025 20:29:52 +0000 (14:29 -0600)
commit06a0d9eee835b5b6242e773cbab34ec9aba19443
tree550fc7335fb00fcf130df5457d93f3f96b02ed08
parent702b7a3e2eb49b144936e061c0107518544c4b1a
binman: Workaround lz4 cli padding in test cases

Newer lz4 util is not happy with any padding at end of file,
it would abort with error message like:

Stream followed by undecodable data at position 43.

Workaround by skipping testCompUtilPadding test case and manually
strip padding in testCompressSectionSize test case.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
tools/binman/ftest.py
tools/binman/test/184_compress_section_size.dts