diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-09-15 15:43:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-15 15:43:25 -0400 |
| commit | 171b364c7ad7b16f84733ec712163085b2fc465a (patch) | |
| tree | 9c37ceb48b4162fecc6a61620ce9f21bef272e47 /tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py | |
| parent | eac139f8f26315076d2c5fd94e7ac2fe322be084 (diff) | |
| parent | f052d1fc39cdeb50d20cac4ea867e1ad24ee0594 (diff) | |
Merge pull request #6905 from gpnaveen/topojson_kernel_version_check
tests: Kernel version check for topojson scripts.
Diffstat (limited to 'tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py')
| -rwxr-xr-x | tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py index 69e050caed..41fa7c0a09 100755 --- a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py +++ b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py @@ -76,6 +76,7 @@ from lib.common_config import ( create_prefix_lists, create_route_maps, verify_bgp_community, + required_linux_kernel_version ) from lib.topolog import logger from lib.bgp import ( @@ -137,6 +138,11 @@ def setup_module(mod): * `mod`: module name """ + # Required linux kernel version for this suite to run. + result = required_linux_kernel_version('4.15') + if result is not True: + pytest.skip("Kernel requirements are not met") + testsuite_run_time = time.asctime(time.localtime(time.time())) logger.info("Testsuite start time: {}".format(testsuite_run_time)) logger.info("=" * 40) |
