From fbfdb4f23a893de546e63a8be5305023203a81c8 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 5 Jan 2022 20:59:38 +0100 Subject: [PATCH] topotests: require Linux 5.0 for NHRP It fails on 4.19, so let's go minimum 5.0 for the time being. Signed-off-by: David Lamparter --- tests/topotests/nhrp_topo/test_nhrp_topo.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/topotests/nhrp_topo/test_nhrp_topo.py b/tests/topotests/nhrp_topo/test_nhrp_topo.py index 2dd00c0184..313ffd5ce9 100644 --- a/tests/topotests/nhrp_topo/test_nhrp_topo.py +++ b/tests/topotests/nhrp_topo/test_nhrp_topo.py @@ -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() -- 2.39.5