]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
py: net: Do not call config@2 if doesn't exists
authorMichal Simek <michal.simek@xilinx.com>
Fri, 8 Sep 2017 09:05:27 +0000 (11:05 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 8 Sep 2017 11:48:11 +0000 (13:48 +0200)
Do not call config@2 images if they are not present in image.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
test/py/tests/test_net_boot.py

index 30a4efd98ecba69cd343efe3abc10c1dc8d81b9e..ca24741b5969180710d03be4c0b4d0fe858621a9 100644 (file)
@@ -72,6 +72,10 @@ def test_net_tftpboot_boot_config2(u_boot_console):
     if not addr:
       addr = u_boot_utils.find_ram_base(u_boot_console)
 
+    response = u_boot_console.run_command('imi %x' % addr)
+    if not "config@2" in response:
+       pytest.skip("Second configuration not found");
+
     timeout = 50000
     with u_boot_console.temporary_timeout(timeout):
        try: