aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/ynl.py
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-02-07 18:41:40 +0000
committerJakub Kicinski <[email protected]>2025-02-11 03:10:10 +0000
commit3337064f4204572a97f701b936436336e37b99d9 (patch)
tree7e95a8be1416da5dfcf017482bda29cb9ff80aa7 /tools/testing/selftests/net/lib/py/ynl.py
parentselftests: drv-net: factor out a DrvEnv base class (diff)
downloadkernel-3337064f4204572a97f701b936436336e37b99d9.tar.gz
kernel-3337064f4204572a97f701b936436336e37b99d9.zip
selftests: drv-net: add helper for path resolution
Refering to C binaries from Python code is going to be a common need. Add a helper to convert from path in relation to the test. Meaning, if the test is in the same directory as the binary, the call would be simply: cfg.rpath("binary"). The helper name "rpath" is not great. I can't think of a better name that would be accurate yet concise. Reviewed-by: Petr Machata <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
0 files changed, 0 insertions, 0 deletions