Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
875158a
)
make test: add python3 compatibility in extend_packet
96/19396/2
author
Alexandre Poirrier
<apoirrie@cisco.com>
Tue, 7 May 2019 08:39:57 +0000
(10:39 +0200)
committer
Paul Vinciguerra
<pvinci@vinciconsulting.com>
Tue, 7 May 2019 19:15:12 +0000
(19:15 +0000)
Change-Id: I342ff8e44e0d1ebd9f2c8cc386372b2f5a731080
Signed-off-by: Alexandre Poirrier <apoirrie@cisco.com>
test/framework.py
patch
|
blob
|
history
diff --git
a/test/framework.py
b/test/framework.py
index
989fb3d
..
1a22acd
100644
(file)
--- a/
test/framework.py
+++ b/
test/framework.py
@@
-756,8
+756,8
@@
class VppTestCase(unittest.TestCase):
packet_len = len(packet) + 4
extend = size - packet_len
if extend > 0:
- num = (extend / len(padding)) + 1
- packet[Raw].load += (padding * num)[:extend]
+ num = (extend /
/
len(padding)) + 1
+ packet[Raw].load += (padding * num)[:extend]
.encode("ascii")
@classmethod
def reset_packet_infos(cls):