Thread (3 messages) 3 messages, 3 authors, 2025-08-15

Re: [PATCH net-next v2] selftests: drv-net: wait for carrier

From: Joe Damato <hidden>
Date: 2025-08-12 17:55:26
Also in: linux-kselftest

On Tue, Aug 12, 2025 at 07:20:54AM -0700, Jakub Kicinski wrote:
On fast machines the tests run in quick succession so even
when tests clean up after themselves the carrier may need
some time to come back.

Specifically in NIPA when ping.py runs right after netpoll_basic.py
the first ping command fails.

Since the context manager callbacks are now common NetDrvEpEnv
gets an ip link up call as well.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
v2:
 - add an empty __del__
v1: https://lore.kernel.org/20250808225741.1095702-1-kuba@kernel.org (local)

CC: shuah@kernel.org
CC: willemb@google.com
CC: petrm@nvidia.com
CC: linux-kselftest@vger.kernel.org
---
 .../selftests/drivers/net/lib/py/__init__.py  |  2 +-
 .../selftests/drivers/net/lib/py/env.py       | 41 +++++++++----------
 tools/testing/selftests/net/lib/py/utils.py   | 18 ++++++++
 3 files changed, 39 insertions(+), 22 deletions(-)
Reviewed-by: Joe Damato <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help