mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
tests/netlink: mark a test that requires tun(4)
This commit is contained in:
parent
6ee181b9d5
commit
effa0f6c0a
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue