From 568d4324f26e6d76ce302882bc2a60c22c09336f Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Mon, 21 Nov 2022 17:15:31 -0500 Subject: [PATCH] tests: skip SVD/DVNI tests for < 5.7 kernel Skip the SVD/DVNI topotests if the kernel version is not at least 5.7. Signed-off-by: Stephen Worley --- .../bgp_evpn_vxlan_svd_topo1/test_bgp_evpn_vxlan_svd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/topotests/bgp_evpn_vxlan_svd_topo1/test_bgp_evpn_vxlan_svd.py b/tests/topotests/bgp_evpn_vxlan_svd_topo1/test_bgp_evpn_vxlan_svd.py index 9a5f32f557..cef8260daf 100755 --- a/tests/topotests/bgp_evpn_vxlan_svd_topo1/test_bgp_evpn_vxlan_svd.py +++ b/tests/topotests/bgp_evpn_vxlan_svd_topo1/test_bgp_evpn_vxlan_svd.py @@ -42,6 +42,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. @@ -142,6 +143,10 @@ def setup_p_router(tgen, p_name): def setup_module(mod): "Sets up the pytest environment" + result = required_linux_kernel_version("5.7") + if result is not True: + pytest.skip("Kernel requirements are not met, kernel version should be >= 5.7") + # This function initiates the topology build with Topogen... tgen = Topogen(build_topo, mod.__name__) -- 2.39.5