mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
binman: Add a prefix before CBFS hex offsets
Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -372,7 +372,7 @@ class TestCbfs(unittest.TestCase):
|
||||
with io.BytesIO(newdata) as fd:
|
||||
fd.seek(pos)
|
||||
self.assertEqual(False, cbr._read_next_file(fd))
|
||||
self.assertIn('File header at 0 ran out of data', stdout.getvalue())
|
||||
self.assertIn('File header at 0x0 ran out of data', stdout.getvalue())
|
||||
|
||||
def test_cbfs_bad_file_string(self):
|
||||
"""Check handling of an incomplete filename string"""
|
||||
@@ -394,7 +394,7 @@ class TestCbfs(unittest.TestCase):
|
||||
with io.BytesIO(newdata) as fd:
|
||||
fd.seek(pos)
|
||||
self.assertEqual(False, cbr._read_next_file(fd))
|
||||
self.assertIn('String at %x ran out of data' %
|
||||
self.assertIn('String at %#x ran out of data' %
|
||||
cbfs_util.FILE_HEADER_LEN, stdout.getvalue())
|
||||
|
||||
def test_cbfs_debug(self):
|
||||
|
Reference in New Issue
Block a user