aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-11-29 17:41:20 -0500
committerOle Trøan <otroan@employees.org>2019-12-19 15:48:21 +0000
commite090f4dbf59f2b0ab4c726062c8fa3190e4a1220 (patch)
tree0b1545c3cf21f75c0491f825939d6751c45f1c5f /test
parent4c16d80067b35973ebc5a86d685db52fea2fd052 (diff)
papi: lazily initialize stats client
remove wait-loop on stats socket from test framework. Type: refactor Change-Id: I5bb95a7c597707a87f9d9a471215c4b4af1a2280 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/framework.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/framework.py b/test/framework.py
index eb59aadd8bf..39fd37f4c73 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -463,19 +463,6 @@ class VppTestCase(unittest.TestCase):
cls.wait_for_enter()
@classmethod
- def wait_for_stats_socket(cls):
- deadline = time.time() + 300
- ok = False
- while time.time() < deadline or \
- cls.debug_gdb or cls.debug_gdbserver:
- if os.path.exists(cls.stats_sock):
- ok = True
- break
- cls.sleep(0.8)
- if not ok:
- cls.logger.critical("Couldn't stat : {}".format(cls.stats_sock))
-
- @classmethod
def wait_for_coredump(cls):
corefile = cls.tempdir + "/core"
if os.path.isfile(corefile):
@@ -560,7 +547,6 @@ class VppTestCase(unittest.TestCase):
else:
hook = hookmodule.PollHook(cls)
cls.vapi.register_hook(hook)
- cls.wait_for_stats_socket()
cls.statistics = VPPStats(socketname=cls.stats_sock)
try:
hook.poll_vpp()