]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: drv-net: add helper for path resolution
authorJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 18:41:40 +0000 (10:41 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Feb 2025 03:10:10 +0000 (19:10 -0800)
commit3337064f4204572a97f701b936436336e37b99d9
tree7e95a8be1416da5dfcf017482bda29cb9ff80aa7
parent29604bc2aaed5a8f5264018b29d73cb4a7a34960
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 <petrm@nvidia.com>
Link: https://patch.msgid.link/20250207184140.1730466-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/csum.py
tools/testing/selftests/drivers/net/lib/py/env.py