[U-Boot] [PATCH] test/py: Detect timeout in phy negotiation
Michal Simek
michal.simek at xilinx.com
Tue May 17 15:57:26 CEST 2016
If timeout happen it should be reported as fault.
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
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 4f4a876c1335..833a8fd5b3e3 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')
@@ -152,6 +154,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)
--
1.9.1
More information about the U-Boot
mailing list