X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=2167399b122ef6d4f5c58d5d538f689b0d5d4d76;hb=4c53313cd7e9b866412ad3e04b2d91ac098c1398;hp=423feaf75458ca4b3cd619614999c88ef9d366ea;hpb=2303cb181b51f63c909cd506125c1f832432865a;p=vpp.git diff --git a/test/framework.py b/test/framework.py index 423feaf7545..2167399b122 100644 --- a/test/framework.py +++ b/test/framework.py @@ -377,6 +377,10 @@ class VppTestCase(unittest.TestCase): try: cls.vapi.connect() except: + try: + cls.vapi.disconnect() + except: + pass if cls.debug_gdbserver: print(colorize("You're running VPP inside gdbserver but " "VPP-API connection failed, did you forget "