binman: Correct testSplNoDtb() and Tpl also
PATCH 1/1 binman: Correct testSplNoDtb() and Tpl also
These two tests require an ELF image so that symbol information can be written into the SPL/TPL binary. At present they rely on other tests having set it up first, but every test must run independently. This can cause occasional errors in CI.
Fix this by setting up the required files, as other tests do.
---
tools/binman/ftest.py | 2 ++ 1 file changed, 2 insertions(+)
tools/binman/ftest.py +2 -0
@@ -1341,6 +1341,7 @@ class TestFunctional(unittest.TestCase): def testSplNoDtb(self): """Test that an image with spl/u-boot-spl-nodtb.bin can be created""" + self._SetupSplElf() data = self._DoReadFile('052_u_boot_spl_nodtb.dts') self.assertEqual(U_BOOT_SPL_NODTB_DATA, data[:len(U_BOOT_SPL_NODTB_DATA)])
@@ -4296,6 +4297,7 @@ class TestFunctional(unittest.TestCase): def testTplNoDtb(self): """Test that an image with tpl/u-boot-tpl-nodtb.bin can be created""" + self._SetupTplElf() data = self._DoReadFile('192_u_boot_tpl_nodtb.dts') self.assertEqual(U_BOOT_TPL_NODTB_DATA, data[:len(U_BOOT_TPL_NODTB_DATA)])
Signature · 1 line
2.31.1.498.g6c1eba8ee3d-goog
PATCH 1/1 binman: Correct testSplNoDtb() and Tpl also
Quoted 8 lines · Simon Glass
These two tests require an ELF image so that symbol information can be written into the SPL/TPL binary. At present they rely on other tests having set it up first, but every test must run independently. This can cause occasional errors in CI.
Fix this by setting up the required files, as other tests do.
Signed-off-by Simon Glass <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210424/14927bd0/attachment.sig>
PATCH 1/1 binman: Correct testSplNoDtb() and Tpl also
Quoted 8 lines · Simon Glass
These two tests require an ELF image so that symbol information can be written into the SPL/TPL binary. At present they rely on other tests having set it up first, but every test must run independently. This can cause occasional errors in CI.
Fix this by setting up the required files, as other tests do.
Signed-off-by Simon Glass <[email protected]>
Signature · 3 lines
Tom Applied to u-boot-dm, thanks!