aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/ynl.py
diff options
context:
space:
mode:
authorJan Stancek <[email protected]>2025-01-08 13:56:14 +0000
committerJakub Kicinski <[email protected]>2025-01-09 20:53:27 +0000
commitab88c2b3739a3d839b04f57d9ee0d6b1dc311cc8 (patch)
tree31aede8efd695598e24281867cbe1b57a6fc785e /tools/testing/selftests/net/lib/py/ynl.py
parenttools: ynl-gen-c: improve support for empty nests (diff)
downloadkernel-ab88c2b3739a3d839b04f57d9ee0d6b1dc311cc8.tar.gz
kernel-ab88c2b3739a3d839b04f57d9ee0d6b1dc311cc8.zip
tools: ynl: move python code to separate sub-directory
Move python code to a separate directory so it can be packaged as a python module. Updates existing references in selftests and docs. Also rename ynl-gen-[c|rst] to ynl_gen_[c|rst], avoid dashes as these prevent easy imports for entrypoints. Signed-off-by: Jan Stancek <[email protected]> Reviewed-by: Donald Hunter <[email protected]> Link: https://patch.msgid.link/a4151bad0e6984e7164d395125ce87fd2e048bf1.1736343575.git.jstancek@redhat.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
-rw-r--r--tools/testing/selftests/net/lib/py/ynl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/lib/py/ynl.py b/tools/testing/selftests/net/lib/py/ynl.py
index 076a7e8dc3eb..ad1e36baee2a 100644
--- a/tools/testing/selftests/net/lib/py/ynl.py
+++ b/tools/testing/selftests/net/lib/py/ynl.py
@@ -13,14 +13,14 @@ try:
SPEC_PATH = KSFT_DIR / "net/lib/specs"
sys.path.append(tools_full_path.as_posix())
- from net.lib.ynl.lib import YnlFamily, NlError
+ from net.lib.ynl.pyynl.lib import YnlFamily, NlError
else:
# Running in tree
tools_full_path = KSRC / "tools"
SPEC_PATH = KSRC / "Documentation/netlink/specs"
sys.path.append(tools_full_path.as_posix())
- from net.ynl.lib import YnlFamily, NlError
+ from net.ynl.pyynl.lib import YnlFamily, NlError
except ModuleNotFoundError as e:
ksft_pr("Failed importing `ynl` library from kernel sources")
ksft_pr(str(e))