aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_span.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_span.py')
-rw-r--r--test/test_span.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_span.py b/test/test_span.py
index 41507092259..dc0110dbe07 100644
--- a/test/test_span.py
+++ b/test/test_span.py
@@ -102,11 +102,12 @@ class TestSpan(VppTestCase):
for i in self.interfaces:
last_info[i.sw_if_index] = None
dst_sw_if_index = dst_if.sw_if_index
- if len(capture_pg1) != len(capture_pg2):
- self.logger.error(
- "Different number of outgoing and mirrored packets : %u != %u" %
- (len(capture_pg1), len(capture_pg2)))
- raise
+ self.AssertEqual(
+ len(capture_pg1),
+ len(capture_pg2),
+ "Different number of outgoing and mirrored packets : %u != %u" %
+ (len(capture_pg1),
+ len(capture_pg2)))
for pkt_pg1, pkt_pg2 in zip(capture_pg1, capture_pg2):
try:
ip1 = pkt_pg1[IP]