From: Michal Simek Date: Fri, 29 Apr 2016 11:53:37 +0000 (+0200) Subject: test/py: Detect timeout in phy negotiation X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=e0e7d201404e5cb9eea7e63845bf1dcf1c095535;p=thirdparty%2Fu-boot.git test/py: Detect timeout in phy negotiation If timeout happen it should be reported as fault. Signed-off-by: Michal Simek State: pending --- diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index e51af90f008..ad0a1c02ebe 100644 --- a/test/py/tests/test_net.py +++ b/test/py/tests/test_net.py @@ -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')