From e090f4dbf59f2b0ab4c726062c8fa3190e4a1220 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Fri, 29 Nov 2019 17:41:20 -0500 Subject: papi: lazily initialize stats client remove wait-loop on stats socket from test framework. Type: refactor Change-Id: I5bb95a7c597707a87f9d9a471215c4b4af1a2280 Signed-off-by: Paul Vinciguerra --- test/framework.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'test') diff --git a/test/framework.py b/test/framework.py index eb59aadd8bf..39fd37f4c73 100644 --- a/test/framework.py +++ b/test/framework.py @@ -462,19 +462,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" @@ -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() -- cgit 1.2.3-korg