From 057bb8c3a4c509652457b3f679a64077a5aa8505 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Tue, 20 Dec 2016 17:32:45 +0100 Subject: test: ip6 vrf instances multi-context test (CSIT-497) - add/delete IPv6 VRF instances and verify results by parsing output of ip6_fib_dump API command and by traffic - small changes in assert_nothing_captured and get_capture to get logged unexpected packets Change-Id: I32207447be2df942e335aa9890ff52fb88e46597 Signed-off-by: Jan Gelety --- test/vpp_pg_interface.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/vpp_pg_interface.py') diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index 4707f0b7..81e9714a 100644 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -220,6 +220,10 @@ class VppPGInterface(VppInterface): if len(capture.res) == expected_count: # bingo, got the packets we expected return capture + elif len(capture.res) > expected_count: + self.test.logger.error( + ppc("Unexpected packets captured:", capture)) + break else: self.test.logger.debug("Partial capture containing %s " "packets doesn't match expected " @@ -251,8 +255,6 @@ class VppPGInterface(VppInterface): if not capture or len(capture.res) == 0: # junk filtered out, we're good return - self.test.logger.error( - ppc("Unexpected packets captured:", capture)) except: pass self.generate_debug_aid("empty-assert") -- cgit 1.2.3-korg