From 4376ab2a926b36c1131588069a8a9cdd2520073d Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Wed, 3 Mar 2021 10:40:05 +0100 Subject: tests: use socket transport instead of shared memory Type: improvement Signed-off-by: Ole Troan Change-Id: I9e65c94a5a05047a5104e9361ea36eac77b40442 Signed-off-by: Ole Troan --- src/vpp-api/python/vpp_papi/vpp_papi.py | 5 ----- src/vpp-api/python/vpp_papi/vpp_transport_socket.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'src/vpp-api/python') diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py index 86bf7cbee30..851c214cad4 100644 --- a/src/vpp-api/python/vpp_papi/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi/vpp_papi.py @@ -917,13 +917,8 @@ class VPPApiClient: while True: kwargs['cursor'] = cursor rv, details = f(**kwargs) - # - # Convert to yield from details when we only support python 3 - # for d in details: yield d if rv.retval == 0 or rv.retval != -165: break cursor = rv.cursor - -# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py index 4af2d934ae8..b0861057e72 100644 --- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py +++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py @@ -90,8 +90,8 @@ class VppTransport: try: self.socket.connect(self.server_address) except socket.error as msg: - logging.error("{} on socket {}".format(msg, self.server_address)) - raise + # logging.error("{} on socket {}".format(msg, self.server_address)) + raise msg self.connected = True -- cgit 1.2.3-korg