selftests: drv-net: construct environment for running tests which require an endpoint
authorJakub Kicinski <kuba@kernel.org>
Sat, 20 Apr 2024 02:52:33 +0000 (19:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Apr 2024 17:13:56 +0000 (10:13 -0700)
commit1880f272d2f9ef2c65a78e80ede235b3123075fc
tree85583093018a810a871e3b1304f807ecc844e011
parent543389295085f65a405b046e31eb107b2a465bd4
selftests: drv-net: construct environment for running tests which require an endpoint

Nothing surprising here, hopefully. Wrap the variables from
the environment into a class or spawn a netdevsim based env
and pass it to the tests.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20240420025237.3309296-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/README.rst
tools/testing/selftests/drivers/net/lib/py/env.py
tools/testing/selftests/net/lib/py/__init__.py
tools/testing/selftests/net/lib/py/netns.py [new file with mode: 0644]