diff options
author | Klement Sekera <ksekera@cisco.com> | 2019-12-05 13:13:21 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-12 07:43:14 +0000 |
commit | cba508a212ffdd2bc60fb887c1588f872804db3f (patch) | |
tree | 10866691eea2e23839e633a6ab276d1cc564a053 /test | |
parent | 9e357046a319ef1b01fa81743ae819ff5f63f87a (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>
(cherry picked from commit 66cea092c7a584bb7b82000fbfad349e6f0af7e1)
Diffstat (limited to 'test')
-rw-r--r-- | test/framework.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py index 3f89b8dade2..7f5d9ba2039 100644 --- a/test/framework.py +++ b/test/framework.py @@ -1005,13 +1005,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 |