aboutsummaryrefslogtreecommitdiff
path: root/tests/atf_python
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2024-07-18 20:36:55 +0000
committerKristof Provost <kp@FreeBSD.org>2024-07-23 13:57:25 +0000
commitae8d58814089308028046ac80aeeb9cbb784bd0a (patch)
tree87b2fadfdbc7b485716cd9b162aad87a7b3dc5f2 /tests/atf_python
parent07d17ca189fcf3cc44b7706040b05ca8135c3b85 (diff)
Diffstat (limited to 'tests/atf_python')
-rw-r--r--tests/atf_python/sys/net/vnet.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/atf_python/sys/net/vnet.py b/tests/atf_python/sys/net/vnet.py
index 67fe15fff69c..6da5f2625990 100644
--- a/tests/atf_python/sys/net/vnet.py
+++ b/tests/atf_python/sys/net/vnet.py
@@ -334,6 +334,10 @@ class VnetTestTemplate(BaseTest):
NEED_ROOT: bool = True
TOPOLOGY = {}
+ def _require_default_modules(self):
+ libc.kldload("if_epair.ko")
+ self.require_module("if_epair")
+
def _get_vnet_handler(self, vnet_alias: str):
handler_name = "{}_handler".format(vnet_alias)
return getattr(self, handler_name, None)
@@ -451,6 +455,8 @@ class VnetTestTemplate(BaseTest):
def setup_method(self, _method):
"""Sets up all the required topology and handlers for the given test"""
super().setup_method(_method)
+ self._require_default_modules()
+
# TestIP6Output.test_output6_pktinfo[ipandif]
topology_id = get_topology_id(self.test_id)
topology = self.TOPOLOGY