diff options
author | 2025-03-27 15:53:04 +0200 | |
---|---|---|
committer | 2025-03-27 16:41:33 +0200 | |
commit | 463335f7667f86934320ab51385d31fc86c36caa (patch) | |
tree | 92e27909aab73db98cdb6713fd24530ed5c52f7f /test/asf | |
parent | 83219f96cdef4b08e2d6a2b8a1dca5bcb3f625f4 (diff) |
tests: fix test cov for PG Stream and Session SDL
Type: test
Localized cli response waiting time configuration only for
test_pg_stream and test_session_sdl instead of asfframework conf
Change-Id: Iabeccdda97e518662f1243edd91217c02cdc8711
Signed-off-by: Ivan Ivanets <iivanets@cisco.com>
Diffstat (limited to 'test/asf')
-rw-r--r-- | test/asf/asfframework.py | 2 | ||||
-rw-r--r-- | test/asf/test_session_sdl.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/asf/asfframework.py b/test/asf/asfframework.py index 8e565d26a52..7670a0753d1 100644 --- a/test/asf/asfframework.py +++ b/test/asf/asfframework.py @@ -652,8 +652,6 @@ class VppAsfTestCase(CPUInterface, unittest.TestCase): cls.pump_thread.start() if cls.debug_gdb or cls.debug_gdbserver or cls.debug_attach: cls.vapi_response_timeout = 0 - elif config.gcov: - cls.vapi_response_timeout = 20 cls.vapi = VppPapiProvider(cls.__name__, cls, cls.vapi_response_timeout) if cls.step: hook = hookmodule.StepHook(cls) diff --git a/test/asf/test_session_sdl.py b/test/asf/test_session_sdl.py index 53301f7bd6c..d2e30daa9f2 100644 --- a/test/asf/test_session_sdl.py +++ b/test/asf/test_session_sdl.py @@ -5,6 +5,7 @@ import unittest from framework import VppTestCase from asfframework import VppTestRunner, tag_fixme_vpp_workers from ipaddress import IPv4Network, IPv6Network +from config import config from vpp_ip_route import ( VppIpRoute, @@ -25,6 +26,10 @@ class TestSessionSDL(VppTestCase): @classmethod def setUpClass(cls): + # increase vapi timeout, to avoid + # failures reported on test-cov + if config.gcov: + cls.vapi_response_timeout = 20 super(TestSessionSDL, cls).setUpClass() @classmethod |