binman: Ignore hash*, signature* nodes in sections
Switch to str.startswith for matching like the FIT etype does since the current version doesn't ignore 'hash-1', 'hash-2', etc. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
2512b3b88b
commit
8001d0b162
@@ -3477,5 +3477,11 @@ class TestFunctional(unittest.TestCase):
|
||||
fnode = dtb.GetNode('/images/kernel')
|
||||
self.assertNotIn('data', fnode.props)
|
||||
|
||||
def testSectionIgnoreHashSignature(self):
|
||||
"""Test that sections ignore hash, signature nodes for its data"""
|
||||
data = self._DoReadFile('165_section_ignore_hash_signature.dts')
|
||||
expected = (U_BOOT_DATA + U_BOOT_DATA)
|
||||
self.assertEqual(expected, data)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user