git: effa0f6c0aad - main - tests/netlink: mark a test that requires tun(4)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jan 2024 04:52:10 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=effa0f6c0aad54a07917af6986d71cd0a57223b8 commit effa0f6c0aad54a07917af6986d71cd0a57223b8 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2024-01-11 04:51:53 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2024-01-11 04:51:53 +0000 tests/netlink: mark a test that requires tun(4) --- tests/sys/netlink/test_rtnl_route.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sys/netlink/test_rtnl_route.py b/tests/sys/netlink/test_rtnl_route.py index 20f2c3ce3ee2..370c8a74a2de 100644 --- a/tests/sys/netlink/test_rtnl_route.py +++ b/tests/sys/netlink/test_rtnl_route.py @@ -48,6 +48,7 @@ class TestRtNlRoute(NetlinkTestTemplate, SingleVnetTestTemplate): @pytest.mark.timeout(5) def test_add_route6_ll_if_gw(self): + self.require_module("if_tun") tun_ifname = IfaceFactory().create_iface("", "tun")[0].name tun_ifindex = socket.if_nametoindex(tun_ifname) @@ -68,6 +69,7 @@ class TestRtNlRoute(NetlinkTestTemplate, SingleVnetTestTemplate): @pytest.mark.timeout(5) def test_add_route4_ll_if_gw(self): + self.require_module("if_tun") tun_ifname = IfaceFactory().create_iface("", "tun")[0].name tun_ifindex = socket.if_nametoindex(tun_ifname)