]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Correct testSplNoDtb() and Tpl also
authorSimon Glass <sjg@chromium.org>
Sat, 24 Apr 2021 20:39:32 +0000 (08:39 +1200)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Apr 2021 10:20:54 +0000 (03:20 -0700)
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 <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/binman/ftest.py

index 89fe6612e1b6ee0f823892433a97956ea0d4bc88..4db25e43357bfebc0105a2f56cd84a0c83c7b796 100644 (file)
@@ -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)])
 
@@ -4272,6 +4273,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)])