diff options
author | Klement Sekera <ksekera@cisco.com> | 2016-12-08 05:03:32 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-12-08 12:16:42 +0000 |
commit | 0c1519b5e7953d093d5532d6caf87ae7ac9333d8 (patch) | |
tree | 12a950c5e54b8b5156bf098ef748827151cf4265 /test/framework.py | |
parent | b1135432d7b8c91d19fe463308c882880c9d60e7 (diff) |
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 <ksekera@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r-- | test/framework.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py index aa4f2fdf8fc..e1f3ba54b57 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) |