Skip to content

Commit 2695c52

Browse files
committed
test: pass through kwargs from uffd_handler() to get_example()
To allow specifying a different directory in which to look for the uffd example binaries, so that they can be used in A/B-tests. Signed-off-by: Patrick Roy <[email protected]>
1 parent 3bd14b4 commit 2695c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/framework/utils_uffd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ def spawn_pf_handler(vm, handler_path, mem_path):
9393
return uffd_handler
9494

9595

96-
def uffd_handler(handler_name):
96+
def uffd_handler(handler_name, **kwargs):
9797
"""Retrieves the uffd handler with the given name"""
98-
return cargo_build.get_example(f"uffd_{handler_name}_handler")
98+
return cargo_build.get_example(f"uffd_{handler_name}_handler", **kwargs)

0 commit comments

Comments
 (0)