diff options
| author | nguggarigoud <nguggarigoud@vmware.com> | 2020-09-15 11:09:43 +0530 | 
|---|---|---|
| committer | nguggarigoud <nguggarigoud@vmware.com> | 2020-09-15 15:44:10 +0530 | 
| commit | 955212d91bc858349609b1ec9bff4351b2b8caf5 (patch) | |
| tree | 2a60b623be5eaef2e4d249c5d21e9850cf95567b /tests/topotests/bgp_as_allow_in | |
| parent | 3dfd384ec4f3d7cdcc43373c6ff6c197fe81c81b (diff) | |
tests: fixing pytest.skip error.
Updated scripts to handle skip on lower
kernel version.
Signed-off-by: naveen <nguggarigoud@vmware.com>
Diffstat (limited to 'tests/topotests/bgp_as_allow_in')
| -rwxr-xr-x | tests/topotests/bgp_as_allow_in/test_bgp_as_allow_in.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/bgp_as_allow_in/test_bgp_as_allow_in.py b/tests/topotests/bgp_as_allow_in/test_bgp_as_allow_in.py index 4db4d1a8b9..f9d22a3a36 100755 --- a/tests/topotests/bgp_as_allow_in/test_bgp_as_allow_in.py +++ b/tests/topotests/bgp_as_allow_in/test_bgp_as_allow_in.py @@ -115,8 +115,8 @@ def setup_module(mod):      # Required linux kernel version for this suite to run.      result = required_linux_kernel_version('4.15') -    if result: -        pytest.skip(result) +    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))  | 
