]> Git Repo - J-u-boot.git/commitdiff
binman: Renumber 291 and 292 test files
authorSimon Glass <[email protected]>
Thu, 3 Aug 2023 23:23:58 +0000 (17:23 -0600)
committerSimon Glass <[email protected]>
Sat, 5 Aug 2023 17:31:59 +0000 (11:31 -0600)
These have ended up with the same numbers as earlier files. Fix them.

Signed-off-by: Simon Glass <[email protected]>
tools/binman/ftest.py
tools/binman/test/291_template_phandle.dts [deleted file]
tools/binman/test/292_template_phandle_dup.dts [deleted file]
tools/binman/test/309_template_phandle.dts [new file with mode: 0644]
tools/binman/test/310_template_phandle_dup.dts [new file with mode: 0644]

index 36428ec343421b8694f88cc487bea0f25bf7f511..78389b34a713d84cb4c3f5a4222064c3553ae5fd 100644 (file)
@@ -6974,7 +6974,7 @@ fdt         fdtmap                Extract the devicetree blob from the fdtmap
         entry_args = {
             'atf-bl31-path': 'bl31.elf',
         }
-        data = self._DoReadFileDtb('291_template_phandle.dts',
+        data = self._DoReadFileDtb('309_template_phandle.dts',
                                    entry_args=entry_args)
         fname = tools.get_output_filename('image.bin')
         out = tools.run('dumpimage', '-l', fname)
@@ -6990,7 +6990,7 @@ fdt         fdtmap                Extract the devicetree blob from the fdtmap
             'atf-bl31-path': 'bl31.elf',
         }
         with self.assertRaises(ValueError) as e:
-            self._DoReadFileDtb('292_template_phandle_dup.dts',
+            self._DoReadFileDtb('310_template_phandle_dup.dts',
                                 entry_args=entry_args)
         self.assertIn(
             'Duplicate phandle 1 in nodes /binman/image/fit/images/atf/atf-bl31 and /binman/image-2/fit/images/atf/atf-bl31',
diff --git a/tools/binman/test/291_template_phandle.dts b/tools/binman/test/291_template_phandle.dts
deleted file mode 100644 (file)
index c4ec1dd..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-
-/dts-v1/;
-
-/ {
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       binman {
-               multiple-images;
-
-               ti_spl_template: template-1 {
-                       fit {
-                               description = "test-desc";
-                               #address-cells = <1>;
-                               images {
-                                       atf {
-                                               description = "atf";
-                                               ti-secure {
-                                                       type = "collection";
-                                                       content = <&atf>;
-                                                       keyfile = "key.pem";
-                                               };
-                                               atf: atf-bl31 {
-                                                       description = "atf";
-                                               };
-                                       };
-                               };
-                       };
-               };
-
-               image {
-                       insert-template = <&ti_spl_template>;
-                       fit {
-                               images {
-                                       fdt-0 {
-                                               description = "fdt";
-                                               ti-secure {
-                                                       type = "collection";
-                                                       content = <&foo_dtb>;
-                                                       keyfile = "key.pem";
-                                               };
-                                               foo_dtb: blob-ext {
-                                                       filename = "vga.bin";
-                                               };
-                                       };
-                               };
-                       };
-               };
-       };
-};
diff --git a/tools/binman/test/292_template_phandle_dup.dts b/tools/binman/test/292_template_phandle_dup.dts
deleted file mode 100644 (file)
index dc86f06..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-
-/dts-v1/;
-
-/ {
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       binman {
-               multiple-images;
-
-               ti_spl_template: template-1 {
-                       fit {
-                               description = "test-desc";
-                               #address-cells = <1>;
-                               images {
-                                       atf {
-                                               description = "atf";
-                                               ti-secure {
-                                                       type = "collection";
-                                                       content = <&atf>;
-                                                       keyfile = "key.pem";
-                                               };
-                                               atf: atf-bl31 {
-                                                       description = "atf";
-                                               };
-                                       };
-                               };
-                       };
-               };
-
-               image {
-                       insert-template = <&ti_spl_template>;
-                       fit {
-                               images {
-                                       fdt-0 {
-                                               description = "fdt";
-                                               ti-secure {
-                                                       type = "collection";
-                                                       content = <&foo_dtb>;
-                                                       keyfile = "key.pem";
-                                               };
-                                               foo_dtb: blob-ext {
-                                                       filename = "vga.bin";
-                                               };
-                                       };
-                               };
-                       };
-               };
-
-               image-2 {
-                       insert-template = <&ti_spl_template>;
-                       fit {
-                               images {
-                                       fdt-0 {
-                                               description = "fdt";
-                                               blob-ext {
-                                                       filename = "vga.bin";
-                                               };
-                                       };
-                               };
-                       };
-               };
-       };
-};
diff --git a/tools/binman/test/309_template_phandle.dts b/tools/binman/test/309_template_phandle.dts
new file mode 100644 (file)
index 0000000..c4ec1dd
--- /dev/null
@@ -0,0 +1,51 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       binman {
+               multiple-images;
+
+               ti_spl_template: template-1 {
+                       fit {
+                               description = "test-desc";
+                               #address-cells = <1>;
+                               images {
+                                       atf {
+                                               description = "atf";
+                                               ti-secure {
+                                                       type = "collection";
+                                                       content = <&atf>;
+                                                       keyfile = "key.pem";
+                                               };
+                                               atf: atf-bl31 {
+                                                       description = "atf";
+                                               };
+                                       };
+                               };
+                       };
+               };
+
+               image {
+                       insert-template = <&ti_spl_template>;
+                       fit {
+                               images {
+                                       fdt-0 {
+                                               description = "fdt";
+                                               ti-secure {
+                                                       type = "collection";
+                                                       content = <&foo_dtb>;
+                                                       keyfile = "key.pem";
+                                               };
+                                               foo_dtb: blob-ext {
+                                                       filename = "vga.bin";
+                                               };
+                                       };
+                               };
+                       };
+               };
+       };
+};
diff --git a/tools/binman/test/310_template_phandle_dup.dts b/tools/binman/test/310_template_phandle_dup.dts
new file mode 100644 (file)
index 0000000..dc86f06
--- /dev/null
@@ -0,0 +1,65 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/dts-v1/;
+
+/ {
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       binman {
+               multiple-images;
+
+               ti_spl_template: template-1 {
+                       fit {
+                               description = "test-desc";
+                               #address-cells = <1>;
+                               images {
+                                       atf {
+                                               description = "atf";
+                                               ti-secure {
+                                                       type = "collection";
+                                                       content = <&atf>;
+                                                       keyfile = "key.pem";
+                                               };
+                                               atf: atf-bl31 {
+                                                       description = "atf";
+                                               };
+                                       };
+                               };
+                       };
+               };
+
+               image {
+                       insert-template = <&ti_spl_template>;
+                       fit {
+                               images {
+                                       fdt-0 {
+                                               description = "fdt";
+                                               ti-secure {
+                                                       type = "collection";
+                                                       content = <&foo_dtb>;
+                                                       keyfile = "key.pem";
+                                               };
+                                               foo_dtb: blob-ext {
+                                                       filename = "vga.bin";
+                                               };
+                                       };
+                               };
+                       };
+               };
+
+               image-2 {
+                       insert-template = <&ti_spl_template>;
+                       fit {
+                               images {
+                                       fdt-0 {
+                                               description = "fdt";
+                                               blob-ext {
+                                                       filename = "vga.bin";
+                                               };
+                                       };
+                               };
+                       };
+               };
+       };
+};
This page took 0.055639 seconds and 4 git commands to generate.