mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
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 <sworley@nvidia.com>
This commit is contained in:
parent
ef94412971
commit
568d4324f2
@ -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__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user