diff options
author | 2025-02-19 15:49:51 -0800 | |
---|---|---|
committer | 2025-02-20 17:58:25 -0800 | |
commit | dabd31baa3b55d90fcb4875db7c1971f5d638718 (patch) | |
tree | 96c395722d8b0b4b9667ef0bf8e069d7376251db /tools/testing/selftests/drivers/net/queues.py | |
parent | selftests: drv-net: add a warning for bkg + shell + terminate (diff) | |
download | wireguard-linux-dabd31baa3b55d90fcb4875db7c1971f5d638718.tar.xz wireguard-linux-dabd31baa3b55d90fcb4875db7c1971f5d638718.zip |
selftests: drv-net: use cfg.rpath() in netlink xsk attr test
The cfg.rpath() helper was been recently added to make formatting
paths for helper binaries easier.
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Tested-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250219234956.520599-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rwxr-xr-x | tools/testing/selftests/drivers/net/queues.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/drivers/net/queues.py b/tools/testing/selftests/drivers/net/queues.py index 5fdfebc6415f..b6896a57a5fd 100755 --- a/tools/testing/selftests/drivers/net/queues.py +++ b/tools/testing/selftests/drivers/net/queues.py @@ -25,8 +25,7 @@ def nl_get_queues(cfg, nl, qtype='rx'): return None def check_xdp(cfg, nl, xdp_queue_id=0) -> None: - test_dir = os.path.dirname(os.path.realpath(__file__)) - xdp = subprocess.Popen([f"{test_dir}/xdp_helper", f"{cfg.ifindex}", f"{xdp_queue_id}"], + xdp = subprocess.Popen([cfg.rpath("xdp_helper"), f"{cfg.ifindex}", f"{xdp_queue_id}"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, bufsize=1, text=True) defer(xdp.kill) |