summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/framework.py')
-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