diff options
| author | Kristof Provost <kp@FreeBSD.org> | 2024-07-18 20:36:55 +0000 |
|---|---|---|
| committer | Kristof Provost <kp@FreeBSD.org> | 2024-07-23 13:57:25 +0000 |
| commit | ae8d58814089308028046ac80aeeb9cbb784bd0a (patch) | |
| tree | 87b2fadfdbc7b485716cd9b162aad87a7b3dc5f2 /tests/atf_python | |
| parent | 07d17ca189fcf3cc44b7706040b05ca8135c3b85 (diff) | |
Diffstat (limited to 'tests/atf_python')
| -rw-r--r-- | tests/atf_python/sys/net/vnet.py | 6 |
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 |
