aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-12-05 13:13:21 +0000
committerOle Trøan <otroan@employees.org>2019-12-05 14:57:20 +0000
commit66cea092c7a584bb7b82000fbfad349e6f0af7e1 (patch)
tree768578ff484fcd03603b0e7a2b3a82a96279aba5
parent95d2f30f20a89c1a4d73ffbdd87221082b98e155 (diff)
tests: fix wrong checksum error message
This change fixes the error message, which would previously report mismatch on IPv6 layer instead of TCP layer. Type: fix Change-Id: Ie78779685362a420d155f928b3cdb341bc3fb8bc Signed-off-by: Klement Sekera <ksekera@cisco.com>
-rw-r--r--test/framework.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py
index d474059578b..eb59aadd8bf 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -1008,13 +1008,15 @@ class VppTestCase(unittest.TestCase):
while True:
layer = temp.getlayer(counter)
if layer:
+ layer = layer.copy()
+ layer.remove_payload()
for cf in checksum_fields:
if hasattr(layer, cf):
if ignore_zero_udp_checksums and \
0 == getattr(layer, cf) and \
layer.name in udp_layers:
continue
- delattr(layer, cf)
+ delattr(temp.getlayer(counter), cf)
checksums.append((counter, cf))
else:
break