diff options
author | Alper Nebi Yasak | 2020-08-31 12:58:18 +0300 |
---|---|---|
committer | Simon Glass | 2020-09-22 12:50:43 -0600 |
commit | 8001d0b162183493ee31b9e578756e450f673745 (patch) | |
tree | 8c7dd9ad3a66cf569e5c76b737aee934de422d5a /tools/binman/ftest.py | |
parent | 2512b3b88ba6b193c3cada7e29e386613e8f9a6b (diff) |
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>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 5f650b5f94c..ab88ee96ab4 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -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() |