mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 09:32:34 +00:00
Merge pull request #10294 from opensourcerouting/topotests-nhrp-require-5.0
topotests: require Linux 5.0 for NHRP
This commit is contained in:
commit
d76a3c5165
@ -41,6 +41,7 @@ sys.path.append(os.path.join(CWD, "../"))
|
||||
from lib import topotest
|
||||
from lib.topogen import Topogen, TopoRouter, get_topogen
|
||||
from lib.topolog import logger
|
||||
from lib.common_config import required_linux_kernel_version
|
||||
|
||||
# Required to instantiate the topology builder class.
|
||||
|
||||
@ -99,6 +100,11 @@ def _populate_iface():
|
||||
|
||||
def setup_module(mod):
|
||||
"Sets up the pytest environment"
|
||||
|
||||
result = required_linux_kernel_version("5.0")
|
||||
if result is not True:
|
||||
pytest.skip("Kernel requirements are not met")
|
||||
|
||||
tgen = Topogen(build_topo, mod.__name__)
|
||||
tgen.start_topology()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user