mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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>
This commit is contained in:
parent
846742f7e3
commit
dabd31baa3
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user