From 0c1519b5e7953d093d5532d6caf87ae7ac9333d8 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Thu, 8 Dec 2016 05:03:32 +0100 Subject: BFD: improve ip header handling, fix assert Instead of storing a pointer, store an offset within vlib_buffer marking the start of the ip header (similar to storing start of ethernet header). Handle negative timeout in the bfd process main loop. Change-Id: I05a1ff3ac41da5bdc3b2ac6f9e03b3241994688b Signed-off-by: Klement Sekera --- test/framework.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/framework.py') diff --git a/test/framework.py b/test/framework.py index aa4f2fdf..e1f3ba54 100644 --- a/test/framework.py +++ b/test/framework.py @@ -278,6 +278,8 @@ class VppTestCase(unittest.TestCase): def setUp(self): """ Clear trace before running each test""" + if self.vpp_dead: + raise Exception("VPP is dead when setting up the test") self.vapi.cli("clear trace") # store the test instance inside the test class - so that objects # holding the class can access instance methods (like assertEqual) -- cgit 1.2.3-korg