public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 1/2] binman: Renumber the fake blob dts
@ 2022-01-12 20:10 Simon Glass
  2022-01-12 20:10 ` [PATCH v2 2/2] binman: Write fake blobs to the output directory Simon Glass
  2022-01-13 12:53 ` [PATCH v2 1/2] binman: Renumber the fake blob dts Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Simon Glass @ 2022-01-12 20:10 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini, Simon Glass

Use a unique number instead of the current 203, which is used by 203_fip
as well. Reformat the code to avoid a long line.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- Add new patch to renumber the fake blob dts

 tools/binman/ftest.py                         | 22 ++++++++++---------
 .../{203_fake_blob.dts => 217_fake_blob.dts}  |  0
 2 files changed, 12 insertions(+), 10 deletions(-)
 rename tools/binman/test/{203_fake_blob.dts => 217_fake_blob.dts} (100%)

diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index a9b7880f362..a9d9160967c 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -4667,16 +4667,6 @@ class TestFunctional(unittest.TestCase):
             str(e.exception),
             "Not enough space in '.*u_boot_binman_embed_sm' for data length.*")
 
-    def testFakeBlob(self):
-        """Test handling of faking an external blob"""
-        with test_util.capture_sys_output() as (stdout, stderr):
-            self._DoTestFile('203_fake_blob.dts', allow_missing=True,
-                             allow_fake_blobs=True)
-        err = stderr.getvalue()
-        self.assertRegex(err,
-                         "Image '.*' has faked external blobs and is non-functional: .*")
-        os.remove('binman_faking_test_blob')
-
     def testVersion(self):
         """Test we can get the binman version"""
         version = '(unreleased)'
@@ -4965,5 +4955,17 @@ fdt         fdtmap                Extract the devicetree blob from the fdtmap
         # There should be a U-Boot after the final FIP
         self.assertEqual(U_BOOT_DATA, data[-4:])
 
+    def testFakeBlob(self):
+        """Test handling of faking an external blob"""
+        with test_util.capture_sys_output() as (stdout, stderr):
+            self._DoTestFile('217_fake_blob.dts', allow_missing=True,
+                             allow_fake_blobs=True)
+        err = stderr.getvalue()
+        self.assertRegex(
+            err,
+            "Image '.*' has faked external blobs and is non-functional: .*")
+        os.remove('binman_faking_test_blob')
+
+
 if __name__ == "__main__":
     unittest.main()
diff --git a/tools/binman/test/203_fake_blob.dts b/tools/binman/test/217_fake_blob.dts
similarity index 100%
rename from tools/binman/test/203_fake_blob.dts
rename to tools/binman/test/217_fake_blob.dts
-- 
2.34.1.575.g55b058a8bb-goog


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

end of thread, other threads:[~2022-01-13 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-12 20:10 [PATCH v2 1/2] binman: Renumber the fake blob dts Simon Glass
2022-01-12 20:10 ` [PATCH v2 2/2] binman: Write fake blobs to the output directory Simon Glass
2022-01-13 12:53   ` Tom Rini
2022-01-13 12:53 ` [PATCH v2 1/2] binman: Renumber the fake blob dts Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox