aboutsummaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-01-11 08:16:53 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-11 19:49:31 +0000
commit10db26f7bfed97022734fb808bd56532fdda48c5 (patch)
tree7a9bd58b90229ebc0838bb1563dc40a7bd8ffc76 /test/framework.py
parentcab65ec86b6c04d7a4674312989b5be0c0e394a4 (diff)
BFD: fix bfd_udp_add API
Fix reporting of bs_index in the return message. Enhance test suite to cover this case. Change-Id: I37d35b850818bc1a05abe67ca919c22aeac978b6 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index e364a8f5..896a1e0d 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -16,6 +16,7 @@ from vpp_papi_provider import VppPapiProvider
from scapy.packet import Raw
from logging import FileHandler, DEBUG
from log import *
+from vpp_object import VppObjectRegistry
"""
Test framework module.
@@ -194,6 +195,7 @@ class VppTestCase(unittest.TestCase):
cls._zombie_captures = []
cls.verbose = 0
cls.vpp_dead = False
+ cls.registry = VppObjectRegistry()
print(double_line_delim)
print(colorize(getdoc(cls).splitlines()[0], YELLOW))
print(double_line_delim)
@@ -290,6 +292,7 @@ class VppTestCase(unittest.TestCase):
self.logger.info(self.vapi.ppcli("show hardware"))
self.logger.info(self.vapi.ppcli("show error"))
self.logger.info(self.vapi.ppcli("show run"))
+ self.registry.remove_vpp_config(self.logger)
def setUp(self):
""" Clear trace before running each test"""