From b59505793e21c2e80548d7d0a3a9b39b0990142f Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Fri, 29 Apr 2016 13:53:37 +0200 Subject: [PATCH] test/py: Detect timeout in phy negotiation If timeout happen it should be reported as fault. Signed-off-by: Michal Simek Acked-by: Stephen Warren --- test/py/tests/test_net.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index 100ff734547..21e50897da4 100644 --- a/test/py/tests/test_net.py +++ b/test/py/tests/test_net.py @@ -81,6 +81,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 @@ -117,6 +118,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') @@ -151,6 +153,7 @@ def test_net_tftpboot(u_boot_console): sz = f.get('size', None) if sz: expected_text += '%d' % sz + assert 'TIMEOUT' not in output assert expected_text in output expected_crc = f.get('crc32', None) -- 2.47.3