Skip to content

Remove hard-coded ['drivers/net', 'drivers/net/hw'] - #142

Merged
kuba-moo merged 1 commit into
linux-netdev:mainfrom
fomichev:perf-worker
Nov 19, 2026
Merged

kuba-moo merged 1 commit into
linux-netdev:mainfrom
fomichev:perf-worker

Conversation

@fomichev

Copy link
Copy Markdown

Export _list_tests as list_tests and add new _write_net_config to discover the list of subdirs.

Do we keep the slopo-tests or drop?

hw_worker writes net.config only into drivers/net and drivers/net/hw.
The kselftest Python lib (drivers/net/lib/py/env.py) reads net.config
from the directory of the test being run, so tests in any other target,
e.g. a new drivers/net/perf, get none of the NETIF, address and remote
settings.

Take the targets from the installed test list instead, the same list
run_tests() executes. 'make install' generates it from the [ksft]
target the orchestrator was configured with, so no extra plumbing via
nic-test.env is needed, and --prep-only keeps working on any installed
tree. If the list can't be read, warn rather than abort the interface
setup.

Rename _list_tests() to list_tests() now that it is used outside of
lib/runner.py.

Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
@kuba-moo
kuba-moo merged commit 959dbff into linux-netdev:main Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants