]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotests: require Linux 5.0 for NHRP
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 5 Jan 2022 19:59:38 +0000 (20:59 +0100)
committermergify-bot <noreply@mergify.com>
Thu, 13 Jan 2022 07:39:51 +0000 (07:39 +0000)
It fails on 4.19, so let's go minimum 5.0 for the time being.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit fbfdb4f23a893de546e63a8be5305023203a81c8)

tests/topotests/nhrp_topo/test_nhrp_topo.py

index 2dd00c0184f91d34d96b823c1b72d2cd28d8eb3e..313ffd5ce9c0f54813517f6c442a26ba52f96521 100644 (file)
@@ -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()