mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
test: dm: eth: Skip timeouts on ping tests
Indicate to the emulated sandbox Ethernet driver when we expect a timeout and tell it to leap forward. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6f2707c6b1
commit
172a31bf87
1 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,7 @@ static int dm_test_net_retry(struct dm_test_state *dms)
|
|||
sandbox_eth_disable_response(1, true);
|
||||
setenv("ethact", "eth@10004000");
|
||||
setenv("netretry", "yes");
|
||||
sandbox_eth_skip_timeout();
|
||||
ut_assertok(net_loop(PING));
|
||||
ut_asserteq_str("eth@10002000", getenv("ethact"));
|
||||
|
||||
|
@ -144,6 +145,7 @@ static int dm_test_net_retry(struct dm_test_state *dms)
|
|||
*/
|
||||
setenv("ethact", "eth@10004000");
|
||||
setenv("netretry", "no");
|
||||
sandbox_eth_skip_timeout();
|
||||
ut_asserteq(-ETIMEDOUT, net_loop(PING));
|
||||
ut_asserteq_str("eth@10004000", getenv("ethact"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue