]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test/py: Detect timeout in phy negotiation
authorMichal Simek <michal.simek@xilinx.com>
Fri, 29 Apr 2016 11:53:37 +0000 (13:53 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 2 Feb 2021 12:49:32 +0000 (13:49 +0100)
If timeout happen it should be reported as fault.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
State: pending

test/py/tests/test_net.py

index e51af90f00867d33e33b6d6f80f2c1c9fe3c785f..ad0a1c02ebe7a35066cfe3171e10805bfc018a44 100644 (file)
@@ -89,6 +89,7 @@ def test_net_dhcp(u_boot_console):
 
     u_boot_console.run_command('setenv autoload no')
     output = u_boot_console.run_command('dhcp')
+    assert 'TIMEOUT' not in output
     assert 'DHCP client bound to address ' in output
 
     global net_set_up
@@ -125,6 +126,7 @@ def test_net_ping(u_boot_console):
         pytest.skip('Network not initialized')
 
     output = u_boot_console.run_command('ping $serverip')
+    assert 'TIMEOUT' not in output
     assert 'is alive' in output
 
 @pytest.mark.buildconfigspec('cmd_net')