All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] binman: Correct testSplNoDtb() and Tpl also
@ 2021-04-24 20:39 Simon Glass
  2021-04-24 21:42 ` Tom Rini
  2021-04-29 16:03 ` Simon Glass
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Glass @ 2021-04-24 20:39 UTC (permalink / raw)
  To: u-boot

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>
---

 tools/binman/ftest.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index 1f94d99bcfb..f36823f51be 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -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)])
-- 
2.31.1.498.g6c1eba8ee3d-goog

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] binman: Correct testSplNoDtb() and Tpl also
  2021-04-24 20:39 [PATCH] binman: Correct testSplNoDtb() and Tpl also Simon Glass
@ 2021-04-24 21:42 ` Tom Rini
  2021-04-29 16:03 ` Simon Glass
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2021-04-24 21:42 UTC (permalink / raw)
  To: u-boot

On Sun, Apr 25, 2021 at 08:39:32AM +1200, Simon Glass wrote:

> 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>

-- 
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] binman: Correct testSplNoDtb() and Tpl also
  2021-04-24 20:39 [PATCH] binman: Correct testSplNoDtb() and Tpl also Simon Glass
  2021-04-24 21:42 ` Tom Rini
@ 2021-04-29 16:03 ` Simon Glass
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2021-04-29 16:03 UTC (permalink / raw)
  To: u-boot

On Sun, Apr 25, 2021 at 08:39:32AM +1200, Simon Glass wrote:

> 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>

-- 
Tom

Applied to u-boot-dm, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-29 16:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 20:39 [PATCH] binman: Correct testSplNoDtb() and Tpl also Simon Glass
2021-04-24 21:42 ` Tom Rini
2021-04-29 16:03 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.