diff mbox series

test/py/tests/test_fpga.py: Correct check for legacy image format support

Message ID 20240703211909.1435390-1-trini@konsulko.com
State Accepted
Commit 6fd2aad04ec96116e58631b7f92d8bf518bfd353
Delegated to: Tom Rini
Headers show
Series test/py/tests/test_fpga.py: Correct check for legacy image format support | expand

Commit Message

Tom Rini July 3, 2024, 9:19 p.m. UTC
The build option to support images of type 'IMAGE_FORMAT_LEGACY' is
CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct
option.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 test/py/tests/test_fpga.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Simon Glass July 5, 2024, 8:36 a.m. UTC | #1
On Wed, 3 Jul 2024 at 22:19, Tom Rini <trini@konsulko.com> wrote:
>
> The build option to support images of type 'IMAGE_FORMAT_LEGACY' is
> CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct
> option.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  test/py/tests/test_fpga.py | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini July 11, 2024, 9:27 p.m. UTC | #2
On Wed, 03 Jul 2024 15:19:09 -0600, Tom Rini wrote:

> The build option to support images of type 'IMAGE_FORMAT_LEGACY' is
> CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct
> option.
> 
> 

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/test/py/tests/test_fpga.py b/test/py/tests/test_fpga.py
index ca7ef8ea40d6..460ff227f6f2 100644
--- a/test/py/tests/test_fpga.py
+++ b/test/py/tests/test_fpga.py
@@ -256,7 +256,7 @@  def test_fpga_loadbp(u_boot_console):
 @pytest.mark.buildconfigspec('cmd_fpga')
 @pytest.mark.buildconfigspec('cmd_fpga_loadmk')
 @pytest.mark.buildconfigspec('cmd_echo')
-@pytest.mark.buildconfigspec('image_format_legacy')
+@pytest.mark.buildconfigspec('legacy_image_format')
 def test_fpga_loadmk_fail(u_boot_console):
     f, dev, addr, bit, bit_size = load_file_from_var(u_boot_console, 'mkimage_legacy')
 
@@ -275,7 +275,7 @@  def test_fpga_loadmk_fail(u_boot_console):
 @pytest.mark.buildconfigspec('cmd_fpga')
 @pytest.mark.buildconfigspec('cmd_fpga_loadmk')
 @pytest.mark.buildconfigspec('cmd_echo')
-@pytest.mark.buildconfigspec('image_format_legacy')
+@pytest.mark.buildconfigspec('legacy_image_format')
 def test_fpga_loadmk_legacy(u_boot_console):
     f, dev, addr, bit, bit_size = load_file_from_var(u_boot_console, 'mkimage_legacy')
 
@@ -289,7 +289,7 @@  def test_fpga_loadmk_legacy(u_boot_console):
 @pytest.mark.buildconfigspec('cmd_fpga')
 @pytest.mark.buildconfigspec('cmd_fpga_loadmk')
 @pytest.mark.buildconfigspec('cmd_echo')
-@pytest.mark.buildconfigspec('image_format_legacy')
+@pytest.mark.buildconfigspec('legacy_image_format')
 def test_fpga_loadmk_legacy_variable_fpga(u_boot_console):
     f, dev, addr, bit, bit_size = load_file_from_var(u_boot_console, 'mkimage_legacy')
 
@@ -306,7 +306,7 @@  def test_fpga_loadmk_legacy_variable_fpga(u_boot_console):
 @pytest.mark.buildconfigspec('cmd_fpga')
 @pytest.mark.buildconfigspec('cmd_fpga_loadmk')
 @pytest.mark.buildconfigspec('cmd_echo')
-@pytest.mark.buildconfigspec('image_format_legacy')
+@pytest.mark.buildconfigspec('legacy_image_format')
 def test_fpga_loadmk_legacy_variable_fpgadata(u_boot_console):
     f, dev, addr, bit, bit_size = load_file_from_var(u_boot_console, 'mkimage_legacy')
 
@@ -323,7 +323,7 @@  def test_fpga_loadmk_legacy_variable_fpgadata(u_boot_console):
 @pytest.mark.buildconfigspec('cmd_fpga')
 @pytest.mark.buildconfigspec('cmd_fpga_loadmk')
 @pytest.mark.buildconfigspec('cmd_echo')
-@pytest.mark.buildconfigspec('image_format_legacy')
+@pytest.mark.buildconfigspec('legacy_image_format')
 def test_fpga_loadmk_legacy_variable(u_boot_console):
     f, dev, addr, bit, bit_size = load_file_from_var(u_boot_console, 'mkimage_legacy')
 
@@ -342,7 +342,7 @@  def test_fpga_loadmk_legacy_variable(u_boot_console):
 @pytest.mark.buildconfigspec('cmd_fpga')
 @pytest.mark.buildconfigspec('cmd_fpga_loadmk')
 @pytest.mark.buildconfigspec('cmd_echo')
-@pytest.mark.buildconfigspec('image_format_legacy')
+@pytest.mark.buildconfigspec('legacy_image_format')
 @pytest.mark.buildconfigspec('gzip')
 def test_fpga_loadmk_legacy_gz(u_boot_console):
     f, dev, addr, bit, bit_size = load_file_from_var(u_boot_console, 'mkimage_legacy_gz')