If timeout happen it should be reported as fault.
Signed-off-by: Michal Simek <[email protected]>
---
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
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot