mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
patman: Adjust 'command' to return strings instead of bytes
At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -56,7 +56,7 @@ class TestCbfs(unittest.TestCase):
|
||||
cls.have_lz4 = True
|
||||
try:
|
||||
tools.Run('lz4', '--no-frame-crc', '-c',
|
||||
tools.GetInputFilename('u-boot.bin'))
|
||||
tools.GetInputFilename('u-boot.bin'), binary=True)
|
||||
except:
|
||||
cls.have_lz4 = False
|
||||
|
||||
|
Reference in New Issue
Block a user