tests/netlink: mark a test that requires tun(4)

This commit is contained in:
Gleb Smirnoff 2024-01-10 20:51:53 -08:00
parent 6ee181b9d5
commit effa0f6c0a

View File

@ -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)