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
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 joe@dama.to